summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-07 08:06:05 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-07 08:06:05 (GMT)
commit76249ea4a7ab1cb0fa41d967b2fb8975916cb955 (patch)
tree695ff618fa6667404441dfbb788561f9a0c415a8 /Lib/test/test_capi.py
parent6a036793b66683e238c7222eb38368e44127c0e7 (diff)
downloadcpython-76249ea4a7ab1cb0fa41d967b2fb8975916cb955.zip
cpython-76249ea4a7ab1cb0fa41d967b2fb8975916cb955.tar.gz
cpython-76249ea4a7ab1cb0fa41d967b2fb8975916cb955.tar.bz2
Issue #20532: Tests which use _testcapi now are marked as CPython only.
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 0edb3bf..a2cb5c7 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -13,7 +13,9 @@ try:
except ImportError:
thread = None
threading = None
-import _testcapi
+# Skip this test if the _testcapi module isn't available.
+_testcapi = test_support.import_module('_testcapi')
+
@unittest.skipUnless(threading, 'Threading required for this test.')
class TestPendingCalls(unittest.TestCase):