https://github.com/python/cpython/commit/8c1c71ee3819ef9bcf106f39206335de45e3d11a
commit: 8c1c71ee3819ef9bcf106f39206335de45e3d11a
branch: 3.12
author: Kirill Podoprigora <[email protected]>
committer: encukou <[email protected]>
date: 2024-04-11T16:18:28+02:00
summary:
[3.12] gh-115142: Skip `test_capi.test_dict.py` if `_testcapi` is not available
(GH-117588) (GH-117718)
(cherry picked from commit dfcae4379f2cc4d352a180f9fef2381570aa9bcb)
files:
M Lib/test/test_capi/test_dict.py
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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]