]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-115142: Skip `test_capi.test_dict.py` if `_testcapi` is not available ...
authorKirill Podoprigora <kirill.bast9@mail.ru>
Thu, 11 Apr 2024 14:18:28 +0000 (17:18 +0300)
committerGitHub <noreply@github.com>
Thu, 11 Apr 2024 14:18:28 +0000 (16:18 +0200)
(cherry picked from commit dfcae4379f2cc4d352a180f9fef2381570aa9bcb)

Lib/test/test_capi/test_dict.py

index 0717708fcce8efd080fcdaa12be4040946d30089..3ec2374a901794d862c7232f605f5314036c50a0 100644 (file)
@@ -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