mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 23:09:32 +01:00
test: accept Paths in tmp_dir.gen()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user