From 5bec7007614e44545fbae34ff6bc5018ea32492b Mon Sep 17 00:00:00 2001 From: Alexander Schepanovski Date: Fri, 6 Dec 2019 18:35:03 +0100 Subject: [PATCH] test: accept Paths in tmp_dir.gen() --- tests/dir_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dir_helpers.py b/tests/dir_helpers.py index 050925e661..ac47f65a94 100644 --- a/tests/dir_helpers.py +++ b/tests/dir_helpers.py @@ -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)