(self)
| 845 | self.assertSigInt([self.ham]) |
| 846 | |
| 847 | def test_pymain_run_file_runpy_run_module(self): |
| 848 | tmp = self.ham.parent |
| 849 | run_module = tmp / "run_module.py" |
| 850 | run_module.write_text( |
| 851 | textwrap.dedent( |
| 852 | """\ |
| 853 | import runpy |
| 854 | runpy.run_module("ham") |
| 855 | """ |
| 856 | ) |
| 857 | ) |
| 858 | self.assertSigInt([run_module], cwd=tmp) |
| 859 | |
| 860 | def test_pymain_run_file_runpy_run_module_as_main(self): |
| 861 | tmp = self.ham.parent |
nothing calls this directly
no test coverage detected