1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
# DP: test_sundry: Don't fail on import of the profile and pstats module
Index: b/Lib/test/test_sundry.py
===================================================================
--- a/Lib/test/test_sundry.py
+++ b/Lib/test/test_sundry.py
@@ -59,7 +59,11 @@ class TestUntestedModules(unittest.TestC
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
|