Issue #20532: Tests which use _testcapi now are marked as CPython only.
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 @@
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):