def METHOD_NAME(self):
    # make an `EGG-INFO` directory that's unrelated
    self.site_dir.joinpath('EGG-INFO').mkdir()
    # used to crash with `IsADirectoryError`
    with self.assertRaises(PackageNotFoundError):
        version('unknown-package')