Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c146bf commit 4a02f95Copy full SHA for 4a02f95
1 file changed
Lib/test/test_hotshot.py
@@ -98,6 +98,16 @@ def g():
98
]
99
self.run_test(g, events, self.new_profiler(lineevents=1))
100
101
+ def test_start_stop(self):
102
+ # Make sure we don't return NULL in the start() and stop()
103
+ # methods when there isn't an error. Bug in 2.2 noted by
104
+ # Anthony Baxter.
105
+ profiler = self.new_profiler()
106
+ profiler.start()
107
+ profiler.stop()
108
+ profiler.close()
109
+ os.unlink(self.logfn)
110
+
111
112
def test_main():
113
test_support.run_unittest(HotShotTestCase)
0 commit comments