MCPcopy Create free account
hub / github.com/python/cpython / test_egg_info

Method test_egg_info

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

Source from the content-addressed store, hash-verified

252
253class DirectoryTest(fixtures.OnSysPath, fixtures.SiteDir, unittest.TestCase):
254 def test_egg_info(self):
255 # make an `EGG-INFO` directory that's unrelated
256 self.site_dir.joinpath('EGG-INFO').mkdir()
257 # used to crash with `IsADirectoryError`
258 with self.assertRaises(PackageNotFoundError):
259 version('unknown-package')
260
261 def test_egg(self):
262 egg = self.site_dir.joinpath('foo-3.6.egg')

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected