(self, path1)
| 1008 | yield |
| 1009 | |
| 1010 | def test_pyimport(self, path1): |
| 1011 | obj = path1.join(class="st">"execfile.py").pyimport() |
| 1012 | assert obj.x == 42 |
| 1013 | assert obj.__name__ == class="st">"execfile" |
| 1014 | |
| 1015 | def test_pyimport_renamed_dir_creates_mismatch(self, tmpdir, monkeypatch): |
| 1016 | p = tmpdir.ensure(class="st">"a", class="st">"test_x123.py") |