# 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 @@ -50,7 +50,11 @@ import mailcap import nturl2path import os2emxpath - 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 sndhdr import tabnanny