From: Giampaolo Rodola' Date: Tue, 12 Feb 2013 14:23:21 +0000 (+0100) Subject: fix NameError exception in test_profile X-Git-Tag: v3.4.0a1~1386 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58cf4539b2928516baab508595eecf99ad6d69f0;p=thirdparty%2FPython%2Fcpython.git fix NameError exception in test_profile --- diff --git a/Lib/test/test_profile.py b/Lib/test/test_profile.py index 2f3d5959499a..1fc3c4266965 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):