Skip to content

Commit 5088b02

Browse files
authored
Unittests: fix world unittests with unittest module (#4895)
1 parent 57a716b commit 5088b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/worlds/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def load_tests(loader, standard_tests, pattern):
1212
all_tests = [
1313
test_case for folder in folders if os.path.exists(folder)
1414
for test_collection in loader.discover(folder, top_level_dir=file_path)
15-
for test_suite in test_collection
15+
for test_suite in test_collection if isinstance(test_suite, unittest.suite.TestSuite)
1616
for test_case in test_suite
1717
]
1818

0 commit comments

Comments
 (0)