tests/hghave.py
changeset 26842 0f76c64f5cc3
parent 26145 ca9bb66c80e9
child 27114 a636a46f5094
equal deleted inserted replaced
26841:e16b1f86e9f6 26842:0f76c64f5cc3
   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