tests/hghave.py
changeset 27702 39122c2442cd
parent 27298 e1f55b50edcb
child 28126 562a073a2a1b
equal deleted inserted replaced
27701:4571c0b38337 27702:39122c2442cd
   458 def has_py3k():
   458 def has_py3k():
   459     return 3 == sys.version_info[0]
   459     return 3 == sys.version_info[0]
   460 
   460 
   461 @check("pure", "running with pure Python code")
   461 @check("pure", "running with pure Python code")
   462 def has_pure():
   462 def has_pure():
   463     return os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure"
   463     return any([
       
   464         os.environ.get("HGMODULEPOLICY") == "py",
       
   465         os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure",
       
   466     ])
   464 
   467 
   465 @check("slow", "allow slow tests")
   468 @check("slow", "allow slow tests")
   466 def has_slow():
   469 def has_slow():
   467     return os.environ.get('HGTEST_SLOW') == 'slow'
   470     return os.environ.get('HGTEST_SLOW') == 'slow'
   468 
   471