changeset 51662:d9faa71a57f6 stable

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 08 Jul 2024 16:44:07 +0200
parents a0f1378b932e
children 11f41248595b
files contrib/import-checker.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.