(self)
| 828 | run_pydoc_pager(sys, 'sys', 'Help on built-in module sys:') |
| 829 | |
| 830 | def test_showtopic(self): |
| 831 | with captured_stdout() as showtopic_io: |
| 832 | helper = pydoc.Helper() |
| 833 | helper.showtopic('with') |
| 834 | helptext = showtopic_io.getvalue() |
| 835 | self.assertIn('The "with" statement', helptext) |
| 836 | |
| 837 | def test_fail_showtopic(self): |
| 838 | with captured_stdout() as showtopic_io: |
nothing calls this directly
no test coverage detected