|
@@ -872,7 +872,7 @@ class _TestCases(unittest.TestCase): |
|
|
with self.assertRaises(SystemExit) as cm: |
|
|
with self.assertRaises(SystemExit) as cm: |
|
|
main() |
|
|
main() |
|
|
|
|
|
|
|
|
# with error code 5 |
|
|
|
|
|
|
|
|
# with error code 1 |
|
|
self.assertEqual(cm.exception[0], 1) |
|
|
self.assertEqual(cm.exception[0], 1) |
|
|
|
|
|
|
|
|
# and outputs an error message |
|
|
# and outputs an error message |
|
|