(self)
| 1777 | ]) |
| 1778 | |
| 1779 | def test_debug_in_file(self): |
| 1780 | with temp_cwd(): |
| 1781 | script = 'script.py' |
| 1782 | with open('script.py', 'w') as f: |
| 1783 | f.write(f"""\ |
| 1784 | print(f'''{{ |
| 1785 | 3 |
| 1786 | =}}''')""") |
| 1787 | |
| 1788 | _, stdout, _ = assert_python_ok(script) |
| 1789 | self.assertEqual(stdout.decode('utf-8').strip().replace('\r\n', '\n').replace('\r', '\n'), |
| 1790 | "3\n=3") |
| 1791 | |
| 1792 | def test_syntax_warning_infinite_recursion_in_file(self): |
| 1793 | with temp_cwd(): |
nothing calls this directly
no test coverage detected