~ubuntu-branches/ubuntu/raring/python3.3/raring-proposed

« back to all changes in this revision

Viewing changes to debian/patches/test-sundry.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-22 06:14:01 UTC
  • Revision ID: package-import@ubuntu.com-20120322061401-vvrgvw3nvi68rtqq
Tags: 3.3.0~a1-1
* Python 3.3.0 alpha1 release.
* Update to 20120321 from the trunk.
* Update debian/copyright.
* Build-depend on expat (>= 2.1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: test_sundry: Don't fail on import of the profile and pstats module
 
2
 
 
3
--- a/Lib/test/test_sundry.py
 
4
+++ b/Lib/test/test_sundry.py
 
5
@@ -50,7 +50,11 @@
 
6
             import mailcap
 
7
             import nturl2path
 
8
             import os2emxpath
 
9
-            import pstats
 
10
+            try:
 
11
+                import pstats  # separated out into the python-profiler package
 
12
+            except ImportError:
 
13
+                if test_support.verbose:
 
14
+                    print("skipping profile and pstats")
 
15
             import py_compile
 
16
             import sndhdr
 
17
             import tabnanny