(self)
| 211 | |
| 212 | class 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') |
nothing calls this directly
no test coverage detected