Skip to content

Commit e529ead

Browse files
author
Ram Rachum
committed
-
1 parent 7f35570 commit e529ead

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

run_tests.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,15 @@ def ensure_zip_testing_was_legit():
172172
package_name in package_names][::-1]
173173
# (Reversing package order for now, to put the shorter tests first.)
174174

175-
###########################################################################
176-
# This is the heavy line, which actually causes Nose to start running
177-
# tests:
178-
TestProgram(argv=argv)
179-
###########################################################################
180175

181-
if testing_from_zip:
182-
ensure_zip_testing_was_legit(package_names, sys, os)
176+
try:
177+
#######################################################################
178+
# This is the heavy line, which actually causes Nose to start running
179+
# tests:
180+
TestProgram(argv=argv)
181+
#######################################################################
182+
183+
finally:
184+
if testing_from_zip:
185+
ensure_zip_testing_was_legit(package_names, sys, os)
183186

0 commit comments

Comments
 (0)