tests/hghave.py
changeset 46604 ad107ed7a4aa
parent 46405 9fd4f7af42ea
child 46724 78e6700ab009
--- 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: