From 5088b02bfee5cf2950fac2cd03982a70abc03cb9 Mon Sep 17 00:00:00 2001 From: Silvris <58583688+Silvris@users.noreply.github.com> Date: Sat, 19 Apr 2025 08:42:20 -0500 Subject: [PATCH] Unittests: fix world unittests with unittest module (#4895) --- test/worlds/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/worlds/__init__.py b/test/worlds/__init__.py index cf396111..4bc01751 100644 --- a/test/worlds/__init__.py +++ b/test/worlds/__init__.py @@ -12,7 +12,7 @@ def load_tests(loader, standard_tests, pattern): all_tests = [ test_case for folder in folders if os.path.exists(folder) for test_collection in loader.discover(folder, top_level_dir=file_path) - for test_suite in test_collection + for test_suite in test_collection if isinstance(test_suite, unittest.suite.TestSuite) for test_case in test_suite ]