From fa79cd14e28d1b5a248191f67f3b3640aca3bb90 Mon Sep 17 00:00:00 2001 From: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com> Date: Wed, 3 Jul 2024 18:59:46 +0530 Subject: [PATCH] Update python-modules.py --- tests/sources/python-modules.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/sources/python-modules.py b/tests/sources/python-modules.py index 434160b..833fee5 100644 --- a/tests/sources/python-modules.py +++ b/tests/sources/python-modules.py @@ -309,7 +309,9 @@ def check_missing_modules(expected_modules): importlib.import_module(module) except: missing.append(module) - return missing + return missing + +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: