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

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


http://hg.python.org/cpython/rev/4cb84c0fbee2
changeset:   80730:4cb84c0fbee2
parent:      80727:e771edf43149
parent:      80729:328a8824c1a7
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Wed Dec 05 15:07:10 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