changeset 26842 | 0f76c64f5cc3 |
parent 26145 | ca9bb66c80e9 |
child 27114 | a636a46f5094 |
--- a/tests/hghave.py Mon Nov 02 13:00:45 2015 +0000 +++ b/tests/hghave.py Sat Oct 24 12:46:03 2015 +0100 @@ -463,3 +463,12 @@ @check("slow", "allow slow tests") def has_slow(): return os.environ.get('HGTEST_SLOW') == 'slow' + +@check("hypothesis", "is Hypothesis installed") +def has_hypothesis(): + try: + import hypothesis + hypothesis.given + return True + except ImportError: + return False