fix NameError exception in test_profile

This commit is contained in:
Giampaolo Rodola' 2013-02-12 15:23:21 +01:00
parent 0166a283f6
commit 58cf4539b2
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ class ProfileTest(unittest.TestCase):
def test_run(self):
with silent():
self.profilermodule.run("testfunc()")
self.profilermodule.run("testfunc()", filename=TESTFN)
self.profilermodule.run("int('1')")
self.profilermodule.run("int('1')", filename=TESTFN)
self.assertTrue(os.path.exists(TESTFN))
def test_runctx(self):