equal
deleted
inserted
replaced
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 |