summaryrefslogtreecommitdiff
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-10-20 21:45:49 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-10-20 21:45:49 +0000
commit56b2cf5e8564c7221a42675d35aaa0d0c503365e (patch)
treedcae273036ff24ca0a35c20da821bf3ffb7c55e5 /Lib/test/test_capi.py
parent10f29c903751f80c3f53be433dcbbba6f1382048 (diff)
downloadcpython-git-56b2cf5e8564c7221a42675d35aaa0d0c503365e.tar.gz
Issue #28484: Skip tests if GIL is not used or multithreading is disabled
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 5521e76112..d4faeb375e 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -630,6 +630,7 @@ class PyMemDebugTests(unittest.TestCase):
regex = regex.format(ptr=self.PTR_REGEX)
self.assertRegex(out, regex)
+ @unittest.skipUnless(threading, 'Test requires a GIL (multithreading)')
def check_malloc_without_gil(self, code):
out = self.check(code)
expected = ('Fatal Python error: Python memory allocator called '