From 28e5e016951f51d6b507e551e04d560bd7a7eb36 Mon Sep 17 00:00:00 2001 From: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com> Date: Tue, 2 Jul 2024 17:34:50 +0530 Subject: [PATCH] Update python-modules.py --- tests/sources/python-modules.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/sources/python-modules.py b/tests/sources/python-modules.py index 833fee5..c45ac8e 100644 --- a/tests/sources/python-modules.py +++ b/tests/sources/python-modules.py @@ -311,7 +311,12 @@ def check_missing_modules(expected_modules): missing.append(module) return missing +# Exclude tkinter for Python 3.8 and above +if sys.version_info >= (3, 8): + excluded_modules.append('_tkinter') + missing_modules = check_missing_modules(x for x in standard_library if x not in excluded_modules) + if missing_modules: print('The following modules are missing:') for module in missing_modules: