mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
profile/cProfile: add tests for run() and runctx() functions
This commit is contained in:
parent
f29fb5ea28
commit
b071d4f3da
2 changed files with 30 additions and 1 deletions
|
@ -6,9 +6,11 @@ from test.support import run_unittest, TESTFN, unlink
|
|||
# rip off all interesting stuff from test_profile
|
||||
import cProfile
|
||||
from test.test_profile import ProfileTest, regenerate_expected_output
|
||||
from test.profilee import testfunc
|
||||
|
||||
class CProfileTest(ProfileTest):
|
||||
profilerclass = cProfile.Profile
|
||||
profilermodule = cProfile
|
||||
expected_max_output = "{built-in method max}"
|
||||
|
||||
def get_expected_output(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue