mirror of
https://github.com/python/cpython
synced 2024-09-22 03:40:01 +00:00
fix NameError exception in test_profile
This commit is contained in:
parent
0166a283f6
commit
58cf4539b2
|
@ -82,8 +82,8 @@ def test_calling_conventions(self):
|
|||
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue