Skip to content

Commit 8e559a9

Browse files
committed
python unit tests should also execute top level test methods
1 parent b63feb5 commit 8e559a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

graalpython/com.oracle.graal.python.test/src/graalpytest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,11 @@ def run_safely(self, func, print_immediately=False):
346346
get_fixture_values(self, _fixture_marks)
347347

348348
try:
349-
for arg_vec in fixture_args:
350-
func(*arg_vec)
349+
if fixture_args:
350+
for arg_vec in fixture_args:
351+
func(*arg_vec)
352+
else:
353+
func()
351354
except BaseException as e:
352355
if isinstance(e, SkipTest):
353356
print("Skipped: %s" % e)

0 commit comments

Comments
 (0)