mirror of
https://github.com/actions/python-versions.git
synced 2025-12-14 14:36:46 +00:00
Update the list of modules in tests for Python 3.10
This commit is contained in:
@@ -256,9 +256,10 @@ if sys.version_info > (3, 7):
|
|||||||
if sys.version_info > (3, 8):
|
if sys.version_info > (3, 8):
|
||||||
standard_library.remove('dummy_threading')
|
standard_library.remove('dummy_threading')
|
||||||
|
|
||||||
# 'symbol' module has been removed from Python 3.10
|
# 'symbol' and 'formatter' modules have been removed from Python 3.10
|
||||||
if sys.version_info >= (3, 10):
|
if sys.version_info >= (3, 10):
|
||||||
standard_library.remove('symbol')
|
standard_library.remove('symbol')
|
||||||
|
standard_library.remove('formatter')
|
||||||
|
|
||||||
# Remove tkinter and Easter eggs
|
# Remove tkinter and Easter eggs
|
||||||
excluded_modules = [
|
excluded_modules = [
|
||||||
@@ -270,7 +271,6 @@ excluded_modules = [
|
|||||||
def check_missing_modules(expected_modules):
|
def check_missing_modules(expected_modules):
|
||||||
missing = []
|
missing = []
|
||||||
for module in expected_modules:
|
for module in expected_modules:
|
||||||
print('Try to import module ', module)
|
|
||||||
try:
|
try:
|
||||||
importlib.import_module(module)
|
importlib.import_module(module)
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user