MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_egg

Method test_egg

Lib/test/test_importlib/test_main.py:220–225  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

218 version('unknown-package')
219
220 def test_egg(self):
221 egg = self.site_dir.joinpath('foo-3.6.egg')
222 egg.mkdir()
223 with self.add_sys_path(egg):
224 with self.assertRaises(PackageNotFoundError):
225 version('foo')
226
227
228class MissingSysPath(fixtures.OnSysPath, unittest.TestCase):

Callers

nothing calls this directly

Calls 5

versionFunction · 0.90
joinpathMethod · 0.45
mkdirMethod · 0.45
add_sys_pathMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected