(self)
| 1758 | ]) |
| 1759 | |
| 1760 | def test_debug_in_file(self): |
| 1761 | with temp_cwd(): |
| 1762 | script = 'script.py' |
| 1763 | with open('script.py', 'w') as f: |
| 1764 | f.write(f"""\ |
| 1765 | print(f'''{{ |
| 1766 | 3 |
| 1767 | =}}''')""") |
| 1768 | |
| 1769 | _, stdout, _ = assert_python_ok(script) |
| 1770 | self.assertEqual(stdout.decode('utf-8').strip().replace('\r\n', '\n').replace('\r', '\n'), |
| 1771 | "3\n=3") |
| 1772 | |
| 1773 | def test_syntax_warning_infinite_recursion_in_file(self): |
| 1774 | with temp_cwd(): |
nothing calls this directly
no test coverage detected