Mercurial > hg
comparison tests/hghave.py @ 28383:e13e0e189990
hghave: improve description of Hypothesis
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 08 Mar 2016 14:32:03 +0000 |
parents | 562a073a2a1b |
children | cdbc25306696 |
comparison
equal
deleted
inserted
replaced
28382:27996f78a64c | 28383:e13e0e189990 |
---|---|
452 | 452 |
453 @check("slow", "allow slow tests") | 453 @check("slow", "allow slow tests") |
454 def has_slow(): | 454 def has_slow(): |
455 return os.environ.get('HGTEST_SLOW') == 'slow' | 455 return os.environ.get('HGTEST_SLOW') == 'slow' |
456 | 456 |
457 @check("hypothesis", "is Hypothesis installed") | 457 @check("hypothesis", "Hypothesis automated test generation") |
458 def has_hypothesis(): | 458 def has_hypothesis(): |
459 try: | 459 try: |
460 import hypothesis | 460 import hypothesis |
461 hypothesis.given | 461 hypothesis.given |
462 return True | 462 return True |