From 229f7597531cabb9999dc48be55b6d059534e1e9 Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Wed, 10 Apr 2024 17:32:57 +0300 Subject: [PATCH] [3.12] gh-115142: Skip ``test_capi.test_dict.py`` if ``_testcapi`` and ``_testlimitedcapi`` are not available (GH-117588) (cherry picked from commit dfcae4379f2cc4d352a180f9fef2381570aa9bcb) Co-authored-by: Kirill Podoprigora gh-115142: Skip test_dict if _testcapi and _testlimitedcapi is not available --- Lib/test/test_capi/test_dict.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_capi/test_dict.py b/Lib/test/test_capi/test_dict.py index 0717708fcce8ef..3ec2374a901794 100644 --- a/Lib/test/test_capi/test_dict.py +++ b/Lib/test/test_capi/test_dict.py @@ -4,7 +4,9 @@ from types import MappingProxyType from test import support from test.support import import_helper -import _testcapi + + +_testcapi = import_helper.import_module("_testcapi") NULL = None