blob: 167ce48e1ba574abd349ca850d7c09698f1967f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|