From: Kirill Podoprigora Date: Thu, 11 Apr 2024 14:18:28 +0000 (+0300) Subject: [3.12] gh-115142: Skip `test_capi.test_dict.py` if `_testcapi` is not available ... X-Git-Tag: v3.12.4~253 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c1c71ee3819ef9bcf106f39206335de45e3d11a;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-115142: Skip `test_capi.test_dict.py` if `_testcapi` is not available (GH-117588) (GH-117718) (cherry picked from commit dfcae4379f2cc4d352a180f9fef2381570aa9bcb) --- diff --git a/Lib/test/test_capi/test_dict.py b/Lib/test/test_capi/test_dict.py index 0717708fcce8..3ec2374a9017 100644 --- a/Lib/test/test_capi/test_dict.py +++ b/Lib/test/test_capi/test_dict.py @@ -4,7 +4,9 @@ from collections import OrderedDict, UserDict from types import MappingProxyType from test import support from test.support import import_helper -import _testcapi + + +_testcapi = import_helper.import_module("_testcapi") NULL = None