tests/hghave.py
changeset 46604 ad107ed7a4aa
parent 46405 9fd4f7af42ea
child 46724 78e6700ab009
equal deleted inserted replaced
46603:1b7c0b10d930 46604:ad107ed7a4aa
   698 
   698 
   699 @check("test-repo", "running tests from repository")
   699 @check("test-repo", "running tests from repository")
   700 def has_test_repo():
   700 def has_test_repo():
   701     t = os.environ["TESTDIR"]
   701     t = os.environ["TESTDIR"]
   702     return os.path.isdir(os.path.join(t, "..", ".hg"))
   702     return os.path.isdir(os.path.join(t, "..", ".hg"))
       
   703 
       
   704 
       
   705 @check("network-io", "whether tests are allowed to access 3rd party services")
       
   706 def has_test_repo():
       
   707     t = os.environ.get("HGTESTS_ALLOW_NETIO")
       
   708     return t == "1"
   703 
   709 
   704 
   710 
   705 @check("curses", "terminfo compiler and curses module")
   711 @check("curses", "terminfo compiler and curses module")
   706 def has_curses():
   712 def has_curses():
   707     try:
   713     try: