From 002e3ccf5726fc9c0fdfc093a6abe23e23d0660f Mon Sep 17 00:00:00 2001 From: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com> Date: Tue, 2 Jul 2024 18:52:13 +0530 Subject: [PATCH] Update python-modules.py --- tests/sources/python-modules.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/sources/python-modules.py b/tests/sources/python-modules.py index 84ddd7f..bfd3341 100644 --- a/tests/sources/python-modules.py +++ b/tests/sources/python-modules.py @@ -311,12 +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.extend(['_tkinter', '_curses', '_curses_panel') - -missing_modules = check_missing_modules(x for x in standard_library if x not in excluded_modules) +import platform +# Exclude tkinter, curses, and curses_panel for Python 3.8 and above on macOS 13 +if sys.version_info >= (3, 8) and platform.system() == 'Darwin' and platform.release() == '13.6.7': + excluded_modules.extend(['_tkinter', '_curses', '_curses_panel']) + if missing_modules: print('The following modules are missing:') for module in missing_modules: