Mercurial > hg
comparison tests/hghave.py @ 27702:39122c2442cd
hghave: support HGMODULEPOLICY for pure
HGMODULEPOLICY was introduced in 4374d819ccd5
author | timeless <timeless@mozdev.org> |
---|---|
date | Mon, 11 Jan 2016 23:13:34 +0000 |
parents | e1f55b50edcb |
children | 562a073a2a1b |
comparison
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 |