From 149b806fe50c7076e2a1e222cecf8fba6b6bdee8 Mon Sep 17 00:00:00 2001 From: Evgenii Korolevskii Date: Fri, 4 Nov 2022 15:23:59 +0100 Subject: [PATCH 1/2] test(config-test): Remove libreadline check for version >= 3.12 --- tests/sources/python-config-test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/sources/python-config-test.py b/tests/sources/python-config-test.py index 9ebcf24..de8a61d 100644 --- a/tests/sources/python-config-test.py +++ b/tests/sources/python-config-test.py @@ -78,6 +78,7 @@ if os_type == 'Darwin': exit(1) ### Validate libreadline -if not have_libreadline: - print('Missing libreadline') - exit(1) +if sys.version_info < (3, 12): + if not have_libreadline: + print('Missing libreadline') + exit(1) \ No newline at end of file From 929dab97d0ccc8ed5f72d0fbb3ae3b6141a8a6cf Mon Sep 17 00:00:00 2001 From: Evgenii Korolevskii Date: Fri, 4 Nov 2022 15:25:35 +0100 Subject: [PATCH 2/2] test(modules-test): Remove check for smtpd in python >= 3.12 --- tests/sources/python-modules.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/sources/python-modules.py b/tests/sources/python-modules.py index 3df2538..bf2d89f 100644 --- a/tests/sources/python-modules.py +++ b/tests/sources/python-modules.py @@ -271,6 +271,10 @@ if sys.version_info >= (3, 11) and platform.system() == 'Linux' and '18.04' in p standard_library.remove('tkinter') standard_library.remove('turtle') +# 'smtpd' module has been removed from Python 3.12 +if sys.version_info >= (3, 12): + standard_library.remove('smtpd') + # Remove tkinter and Easter eggs excluded_modules = [ 'antigravity',