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.
--- 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.