diff --git a/test_zipp.py b/test_zipp.py index ae0ad86..f507305 100644 --- a/test_zipp.py +++ b/test_zipp.py @@ -345,3 +345,10 @@ def test_root_unnamed(self, alpharep): sub = root / "b" assert sub.name == "b" assert sub.parent + + @pass_alpharep + def test_inheritance(self, alpharep): + cls = type('PathChild', (zipp.Path,), {}) + for alpharep in self.zipfile_alpharep(): + file = cls(alpharep).joinpath('some dir').parent + assert isinstance(file, cls)