diff contrib/import-checker.py @ 51659: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 617af10994fb
children 3ba998d7fc77
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.