test.py: return exit code to shell on failure #2

Merged
merged 1 commit into from Feb 10, 2012
Jump to file
+4 −2
Split
View
@@ -393,5 +393,7 @@ def test_method_restrictions(self):
process = Process(target=run_server)
process.start()
time.sleep(0.1)
- unittest.main(exit=False)
- process.terminate()
+ try:
+ unittest.main()
+ finally:
+ process.terminate()