[Python-checkins] cpython (merge 3.2 -> 3.3): Merge: skip pdb test for #13120 if threading is not available.

andrew.svetlov python-checkins at python.org
Wed Dec 5 14:07:22 CET 2012


http://hg.python.org/cpython/rev/328a8824c1a7
changeset:   80729:328a8824c1a7
branch:      3.3
parent:      80726:4e5c690e7f99
parent:      80728:26056f8a0afe
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Wed Dec 05 15:06:54 2012 +0200
summary:
  Merge: skip pdb test for #13120 if threading is not available.

files:
  Lib/test/test_pdb.py |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -671,6 +671,9 @@
         # invoking "continue" on a non-main thread triggered an exception
         # inside signal.signal
 
+        # raises SkipTest if python was built without threads
+        support.import_module('threading')
+
         with open(support.TESTFN, 'wb') as f:
             f.write(textwrap.dedent("""
                 import threading

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list