(self)
| 391 | self.assertEqual(stderr.getvalue(), "hello\n") |
| 392 | |
| 393 | def test_captured_stdin(self): |
| 394 | with support.captured_stdin() as stdin: |
| 395 | stdin.write('hello\n') |
| 396 | stdin.seek(0) |
| 397 | # call test code that consumes from sys.stdin |
| 398 | captured = input() |
| 399 | self.assertEqual(captured, "hello") |
| 400 | |
| 401 | def test_gc_collect(self): |
| 402 | support.gc_collect() |
nothing calls this directly
no test coverage detected