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

Method test_pyimport_d

testing/_py/test_local.py:1066–1069  ·  view source on GitHub ↗
(self, path1)

Source from the content-addressed store, hash-verified

1064 assert mod.value == "got it"
1065
1066 def test_pyimport_d(self, path1):
1067 otherdir = path1.join("otherdir")
1068 mod = otherdir.join("d.py").pyimport()
1069 assert mod.value2 == "got it"
1070
1071 def test_pyimport_and_import(self, tmpdir):
1072 tmpdir.ensure("xxxpackage", "__init__.py")

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
pyimportMethod · 0.80

Tested by

no test coverage detected