Commit 56537b46 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

coverage context-manager re-raises SystemExit

SystemExit re-raised to exit with the correct return code.
parent 193efda8
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -107,6 +107,8 @@ def coverage_report(modules, include=None, exclude=None, file=None):
			if file.isatty():
				file.write("\nCoverage Report:\n================\n")
			cover.report(list(modules), include=include, omit=exclude, file=file)

		raise
	finally:
		sys.modules.clear()
		sys.modules.update(old_modules)