(self, tmp_path: Path)
| 271 | |
| 272 | @pytest.fixture |
| 273 | def simple_module(self, tmp_path: Path) -> Path: |
| 274 | fn = tmp_path / "_src/tests/mymod.py" |
| 275 | fn.parent.mkdir(parents=True) |
| 276 | fn.write_text("def foo(x): return 40 + x") |
| 277 | return fn |
| 278 | |
| 279 | def test_importmode_importlib(self, simple_module: Path, tmp_path: Path) -> None: |
| 280 | """`importlib` mode does not change sys.path.""" |