Commit 4624f204 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #873 from scop/issue-850

Tell unittest.main not to exit, fixes #850.
parents 1474cf0f 53b47e1d
......@@ -225,10 +225,12 @@ class test(Command):
del_modules.append(name)
list(map(sys.modules.__delitem__, del_modules))
exit_kwarg = {} if sys.version_info < (2, 7) else {"exit": False}
unittest_main(
None, None, self._argv,
testLoader=self._resolve_as_ep(self.test_loader),
testRunner=self._resolve_as_ep(self.test_runner),
**exit_kwarg
)
@property
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment