MCPcopy
hub / github.com/pytest-dev/pytest / test_pyimport

Method test_pyimport

testing/_py/test_local.py:1010–1013  ·  testing/_py/test_local.py::TestImport.test_pyimport
(self, path1)

Source from the content-addressed store, hash-verified

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")

Callers

nothing calls this directly

Calls 2

pyimportMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected