]> granicus.if.org Git - python/commitdiff
Issue #8932: Skip required when compiled --without-threads.
authorStefan Krah <stefan@bytereef.org>
Wed, 9 Jun 2010 08:56:28 +0000 (08:56 +0000)
committerStefan Krah <stefan@bytereef.org>
Wed, 9 Jun 2010 08:56:28 +0000 (08:56 +0000)
Lib/test/test_capi.py

index 246e25bbc7b399581f692c48d5abe51c7b4ba8ec..32f8fae25af441f44f215d58eb921b6f4ce866b8 100644 (file)
@@ -36,6 +36,7 @@ class CAPITest(unittest.TestCase):
         self.assertEqual(testfunction.attribute, "test")
         self.assertRaises(AttributeError, setattr, inst.testfunction, "attribute", "test")
 
+    @unittest.skipUnless(threading, 'Threading required for this test.')
     def test_no_FatalError_infinite_loop(self):
         p = subprocess.Popen([sys.executable, "-c",
                               'import _testcapi;'