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