Skip to content

Commit

Permalink
test: accept Paths in tmp_dir.gen()
Browse files Browse the repository at this point in the history
  • Loading branch information
Suor committed Dec 6, 2019
1 parent 659eb04 commit 5bec700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/dir_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _require(self, name):
)

def gen(self, struct, text=""):
if isinstance(struct, basestring):
if isinstance(struct, (basestring, pathlib.PurePath)):
struct = {struct: text}

self._gen(struct)
Expand Down

0 comments on commit 5bec700

Please sign in to comment.