Mercurial > hg
diff tests/hghave.py @ 46604:ad107ed7a4aa
ci: test real dependency installation for pip
In the past, the pip smoke test inhibited actual dependency
installation, but that fails in different environments for setuptools
itself. Since it isn't what we actually want to test (which is pip
install), allow this to call home, if HGTESTS_ALLOW_NETIO=1 is set
in the environment.
Differential Revision: https://phab.mercurial-scm.org/D9950
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Thu, 04 Feb 2021 23:23:35 +0100 |
parents | 9fd4f7af42ea |
children | 78e6700ab009 |
line wrap: on
line diff
--- a/tests/hghave.py Wed Feb 17 20:40:19 2021 +0100 +++ b/tests/hghave.py Thu Feb 04 23:23:35 2021 +0100 @@ -702,6 +702,12 @@ return os.path.isdir(os.path.join(t, "..", ".hg")) +@check("network-io", "whether tests are allowed to access 3rd party services") +def has_test_repo(): + t = os.environ.get("HGTESTS_ALLOW_NETIO") + return t == "1" + + @check("curses", "terminfo compiler and curses module") def has_curses(): try: