From: Stefan Krah <stefan@bytereef.org> Date: Wed, 9 Jun 2010 08:56:28 +0000 (+0000) Subject: Issue #8932: Skip required when compiled --without-threads. X-Git-Tag: v3.2a1~588 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ca4624e8a3328bb53a78d12fd596dfc98eabf89;p=python Issue #8932: Skip required when compiled --without-threads. --- diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 246e25bbc7..32f8fae25a 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -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;'