(self)
| 871 | |
| 872 | @support.force_not_colorized |
| 873 | def test_unknown_flag(self): |
| 874 | stderr = io.StringIO() |
| 875 | with self.assertRaises(SystemExit): |
| 876 | # check that the parser help is shown |
| 877 | with contextlib.redirect_stderr(stderr): |
| 878 | _ = self.invoke_pickle('--unknown') |
| 879 | self.assertStartsWith(stderr.getvalue(), 'usage: ') |
| 880 | |
| 881 | |
| 882 | def load_tests(loader, tests, pattern): |
nothing calls this directly
no test coverage detected