Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/hghave @ 5164:e5b21a549cc5
hghave: test hotshot dependencies (debian does not provide profile)
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Tue, 14 Aug 2007 19:25:49 +0200 |
parents | 9b0efeb725f4 |
children | 4fa0f2dff643 |
comparison
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(): |