Skip to content

Commit 0f0ea7f

Browse files
committed
Fix bug in Lib/test/libregrtest/runtest.py that makes running tests an extra time than specified
1 parent 3a6d752 commit 0f0ea7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/libregrtest/runtest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,10 @@ def test_runner():
173173
if loader.errors:
174174
raise Exception("errors while loading tests")
175175
support.run_unittest(tests)
176-
test_runner()
177176
if ns.huntrleaks:
178177
refleak = dash_R(the_module, test, test_runner, ns.huntrleaks)
178+
else:
179+
test_runner()
179180
test_time = time.time() - start_time
180181
post_test_cleanup()
181182
except support.ResourceDenied as msg:

0 commit comments

Comments
 (0)