diff options
author | Kirill Podoprigora <kirill.bast9@mail.ru> | 2024-04-10 14:32:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 14:32:57 (GMT) |
commit | dfcae4379f2cc4d352a180f9fef2381570aa9bcb (patch) | |
tree | a240a1d5209bb6e35bfc4bb284f31026c83bc60d | |
parent | 79eec66e3dc277ea6ebad8c0b33756eea6a7ab3b (diff) | |
download | cpython-dfcae4379f2cc4d352a180f9fef2381570aa9bcb.zip cpython-dfcae4379f2cc4d352a180f9fef2381570aa9bcb.tar.gz cpython-dfcae4379f2cc4d352a180f9fef2381570aa9bcb.tar.bz2 |
gh-115142: Skip ``test_capi.test_dict.py`` if ``_testcapi`` and ``_testlimitedcapi`` are not available (GH-117588)
gh-115142: Skip test_dict if _testcapi and _testlimitedcapi is not available
-rw-r--r-- | Lib/test/test_capi/test_dict.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_capi/test_dict.py b/Lib/test/test_capi/test_dict.py index bcc978d..e726e3d 100644 --- a/Lib/test/test_capi/test_dict.py +++ b/Lib/test/test_capi/test_dict.py @@ -2,8 +2,11 @@ import unittest from collections import OrderedDict, UserDict from types import MappingProxyType from test import support -import _testcapi -import _testlimitedcapi +from test.support import import_helper + + +_testcapi = import_helper.import_module("_testcapi") +_testlimitedcapi = import_helper.import_module("_testlimitedcapi") NULL = None |