diff -r 1b7c0b10d930 -r ad107ed7a4aa tests/hghave.py --- 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: