tests/hghave
changeset 5164 e5b21a549cc5
parent 5162 9b0efeb725f4
child 5230 4fa0f2dff643
equal deleted inserted replaced
5162:9b0efeb725f4 5164:e5b21a549cc5
    35     except:
    35     except:
    36         return False
    36         return False
    37 
    37 
    38 def has_hotshot():
    38 def has_hotshot():
    39     try:
    39     try:
    40         import hotshot
    40         # hotshot.stats tests hotshot and many problematic dependencies
       
    41         # like profile.
       
    42         import hotshot.stats
    41         return True
    43         return True
    42     except ImportError:
    44     except ImportError:
    43         return False
    45         return False
    44 
    46 
    45 def has_lsprof():
    47 def has_lsprof():