# DP: test_sundry: Don't fail on import of the profile and pstats module --- a/Lib/test/test_sundry.py +++ b/Lib/test/test_sundry.py @@ -62,7 +62,11 @@ import os2emxpath import pdb import posixfile - import pstats + try: + import pstats # separated out into the python-profiler package + except ImportError: + if test_support.verbose: + print "skipping profile and pstats" import py_compile import rexec import sched