summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2013-02-12 14:23:21 (GMT)
committerGiampaolo Rodola' <g.rodola@gmail.com>2013-02-12 14:23:21 (GMT)
commit58cf4539b2928516baab508595eecf99ad6d69f0 (patch)
treea3e7f43cdec6af42865063f9c229d7cd2c03aad8
parent0166a283f65b08ee2dddb1b075f86862b8c7e3e4 (diff)
downloadcpython-58cf4539b2928516baab508595eecf99ad6d69f0.zip
cpython-58cf4539b2928516baab508595eecf99ad6d69f0.tar.gz
cpython-58cf4539b2928516baab508595eecf99ad6d69f0.tar.bz2
fix NameError exception in test_profile
-rw-r--r--Lib/test/test_profile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_profile.py b/Lib/test/test_profile.py
index 2f3d595..1fc3c42 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):