From 58cf4539b2928516baab508595eecf99ad6d69f0 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola' Date: Tue, 12 Feb 2013 15:23:21 +0100 Subject: [PATCH] fix NameError exception in test_profile --- Lib/test/test_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_profile.py b/Lib/test/test_profile.py index 2f3d595949..1fc3c42669 100644 --- a/Lib/test/test_profile.py +++ b/Lib/test/test_profile.py @@ -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): -- 2.50.0