profile/cProfile: add tests for run() and runctx() functions

This commit is contained in:
Giampaolo Rodola' 2013-02-12 14:31:06 +01:00
parent f29fb5ea28
commit b071d4f3da
2 changed files with 30 additions and 1 deletions

View file

@ -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):