]> granicus.if.org Git - python/commitdiff
fix NameError exception in test_profile
authorGiampaolo Rodola' <g.rodola@gmail.com>
Tue, 12 Feb 2013 14:23:21 +0000 (15:23 +0100)
committerGiampaolo Rodola' <g.rodola@gmail.com>
Tue, 12 Feb 2013 14:23:21 +0000 (15:23 +0100)
Lib/test/test_profile.py

index 2f3d5959499a8d626dbc3740641aced3a9be56d1..1fc3c426696518f2c370b56b22293815a897f116 100644 (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):