(self)
| 800 | |
| 801 | @support.force_not_colorized |
| 802 | def test_unknown_flag(self): |
| 803 | stderr = io.StringIO() |
| 804 | with self.assertRaises(SystemExit): |
| 805 | # check that the parser help is shown |
| 806 | with contextlib.redirect_stderr(stderr): |
| 807 | _ = self.invoke_pickle('--unknown') |
| 808 | self.assertStartsWith(stderr.getvalue(), 'usage: ') |
| 809 | |
| 810 | |
| 811 | def load_tests(loader, tests, pattern): |
nothing calls this directly
no test coverage detected