Skip to content

Commit dfcae43

Browse files
authored
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
1 parent 79eec66 commit dfcae43

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Lib/test/test_capi/test_dict.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
from collections import OrderedDict, UserDict
33
from types import MappingProxyType
44
from test import support
5-
import _testcapi
6-
import _testlimitedcapi
5+
from test.support import import_helper
6+
7+
8+
_testcapi = import_helper.import_module("_testcapi")
9+
_testlimitedcapi = import_helper.import_module("_testlimitedcapi")
710

811

912
NULL = None

0 commit comments

Comments
 (0)