diff --git a/tests/dir_helpers.py b/tests/dir_helpers.py index 050925e66..ac47f65a9 100644 --- a/tests/dir_helpers.py +++ b/tests/dir_helpers.py @@ -88,7 +88,7 @@ class TmpDir(pathlib.Path): ) def gen(self, struct, text=""): - if isinstance(struct, basestring): + if isinstance(struct, (basestring, pathlib.PurePath)): struct = {struct: text} self._gen(struct)