(self, pytester: Pytester)
| 754 | |
| 755 | class TestRewriteOnImport: |
| 756 | def test_pycache_is_a_file(self, pytester: Pytester) -> None: |
| 757 | pytester.path.joinpath("__pycache__").write_text("Hello") |
| 758 | pytester.makepyfile( |
| 759 | """ |
| 760 | def test_rewritten(): |
| 761 | assert "@py_builtins" in globals()""" |
| 762 | ) |
| 763 | assert pytester.runpytest().ret == 0 |
| 764 | |
| 765 | def test_pycache_is_readonly(self, pytester: Pytester) -> None: |
| 766 | cache = pytester.mkdir("__pycache__") |
nothing calls this directly
no test coverage detected