Merge pull request #197 from e-korolevskii/fix-tests-for-python-3.12

Fix tests for python 3.12
This commit is contained in:
Marko Zivic 2022-11-08 11:44:54 +01:00 committed by GitHub
commit a6c0fa93f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -78,6 +78,7 @@ if os_type == 'Darwin':
exit(1) exit(1)
### Validate libreadline ### Validate libreadline
if sys.version_info < (3, 12):
if not have_libreadline: if not have_libreadline:
print('Missing libreadline') print('Missing libreadline')
exit(1) exit(1)

View File

@ -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('tkinter')
standard_library.remove('turtle') 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 # Remove tkinter and Easter eggs
excluded_modules = [ excluded_modules = [
'antigravity', 'antigravity',