Kaydet (Commit) 58cf4539 authored tarafından Giampaolo Rodola''s avatar Giampaolo Rodola'

fix NameError exception in test_profile

üst 0166a283
...@@ -82,8 +82,8 @@ class ProfileTest(unittest.TestCase): ...@@ -82,8 +82,8 @@ class ProfileTest(unittest.TestCase):
def test_run(self): def test_run(self):
with silent(): with silent():
self.profilermodule.run("testfunc()") self.profilermodule.run("int('1')")
self.profilermodule.run("testfunc()", filename=TESTFN) self.profilermodule.run("int('1')", filename=TESTFN)
self.assertTrue(os.path.exists(TESTFN)) self.assertTrue(os.path.exists(TESTFN))
def test_runctx(self): def test_runctx(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment