(self)
| 54 | class StdStreamTest(unittest.TestCase): |
| 55 | |
| 56 | def test_skip_invalid_stderr(self): |
| 57 | parser = argparse.ArgumentParser() |
| 58 | with ( |
| 59 | contextlib.redirect_stderr(None), |
| 60 | mock.patch('argparse._sys.exit') |
| 61 | ): |
| 62 | parser.exit(status=0, message='foo') |
| 63 | |
| 64 | def test_skip_invalid_stdout(self): |
| 65 | parser = argparse.ArgumentParser() |