]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Skip pdb test for #13120 if threading is not available.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 5 Dec 2012 13:06:23 +0000 (15:06 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 5 Dec 2012 13:06:23 +0000 (15:06 +0200)
Lib/test/test_pdb.py

index dc2609e0c56b8b253f81b2299cf0a61c81628e22..8355e7d9558a346a78767e6b109ad71ea8b46dc0 100644 (file)
@@ -668,6 +668,9 @@ class PdbTestCase(unittest.TestCase):
         # 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