MCPcopy Index your code
hub / github.com/python/cpython / test_egg

Method test_egg

Lib/test/test_importlib/metadata/test_main.py:261–266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259 version('unknown-package')
260
261 def test_egg(self):
262 egg = self.site_dir.joinpath('foo-3.6.egg')
263 egg.mkdir()
264 with self.add_sys_path(egg):
265 with self.assertRaises(PackageNotFoundError):
266 version('foo')
267
268
269class MissingSysPath(fixtures.OnSysPath, unittest.TestCase):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected