test-check: don't report distutils as a local import stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 08 Jul 2024 16:44:07 +0200
branchstable
changeset 51662 d9faa71a57f6
parent 51661 a0f1378b932e
child 51663 11f41248595b
test-check: don't report distutils as a local import On python 3.12 this is wrongly reported as a local import. So we adjust the checker to avoid it.
contrib/import-checker.py
--- a/contrib/import-checker.py	Mon Jul 08 16:20:04 2024 +0200
+++ b/contrib/import-checker.py	Mon Jul 08 16:44:07 2024 +0200
@@ -237,6 +237,8 @@
         yield m
     for m in ['cffi']:
         yield m
+    yield 'distutils'  # in Python < 3.12
+    yield 'distutils.version'  # in Python < 3.12
     stdlib_prefixes = {sys.prefix, sys.exec_prefix}
     # We need to supplement the list of prefixes for the search to work
     # when run from within a virtualenv.