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

Method test_egg_info

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

Source from the content-addressed store, hash-verified

211
212class DirectoryTest(fixtures.OnSysPath, fixtures.SiteDir, unittest.TestCase):
213 def test_egg_info(self):
214 # make an `EGG-INFO` directory that's unrelated
215 self.site_dir.joinpath('EGG-INFO').mkdir()
216 # used to crash with `IsADirectoryError`
217 with self.assertRaises(PackageNotFoundError):
218 version('unknown-package')
219
220 def test_egg(self):
221 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