equal
deleted
inserted
replaced
461 return os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure" |
461 return os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure" |
462 |
462 |
463 @check("slow", "allow slow tests") |
463 @check("slow", "allow slow tests") |
464 def has_slow(): |
464 def has_slow(): |
465 return os.environ.get('HGTEST_SLOW') == 'slow' |
465 return os.environ.get('HGTEST_SLOW') == 'slow' |
|
466 |
|
467 @check("hypothesis", "is Hypothesis installed") |
|
468 def has_hypothesis(): |
|
469 try: |
|
470 import hypothesis |
|
471 hypothesis.given |
|
472 return True |
|
473 except ImportError: |
|
474 return False |