diff options
Diffstat (limited to 'python2.7/patches/test-sundry.diff')
-rw-r--r-- | python2.7/patches/test-sundry.diff | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/python2.7/patches/test-sundry.diff b/python2.7/patches/test-sundry.diff new file mode 100644 index 0000000..167ce48 --- /dev/null +++ b/python2.7/patches/test-sundry.diff @@ -0,0 +1,17 @@ +# 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 |