(self)
| 658 | self.assertIn(" symbol table for function 'spam':", lines) |
| 659 | |
| 660 | def test_stdin(self): |
| 661 | with support.captured_stdin() as stdin: |
| 662 | stdin.write(TEST_CODE) |
| 663 | stdin.seek(0) |
| 664 | with support.captured_stdout() as stdout: |
| 665 | symtable.main([]) |
| 666 | out = stdout.getvalue() |
| 667 | stdin.seek(0) |
| 668 | with support.captured_stdout() as stdout: |
| 669 | symtable.main(['-']) |
| 670 | self.assertEqual(stdout.getvalue(), out) |
| 671 | lines = out.splitlines() |
| 672 | self.assertIn("symbol table for module from file '<stdin>':", lines) |
| 673 | |
| 674 | |
| 675 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected