mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add a test for the 'closed' attribute on the C-profiler object.
This commit is contained in:
parent
ed375e18d1
commit
7fadcabdee
1 changed files with 3 additions and 0 deletions
|
@ -63,8 +63,11 @@ class HotShotTestCase(unittest.TestCase):
|
|||
def run_test(self, callable, events, profiler=None):
|
||||
if profiler is None:
|
||||
profiler = self.new_profiler()
|
||||
self.failUnless(not profiler._prof.closed)
|
||||
profiler.runcall(callable)
|
||||
self.failUnless(not profiler._prof.closed)
|
||||
profiler.close()
|
||||
self.failUnless(profiler._prof.closed)
|
||||
self.check_events(events)
|
||||
|
||||
def test_addinfo(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue