class ProfilerTest(TestCase): def setUp(self): self.profiler = Profiler() def tearDown(self): self.profiler.stop() def test_profiler(self): with self.profiler: test.pystone.pystones()
def setUp(self): self.profiler = Profiler()