Skip to content

Commit 79605cc

Browse files
committed
convert tmpdir (which is a LocalPath object) to a string otherwise os.path.join will fail using Python <= 3.5
1 parent 666896c commit 79605cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray/tests/test_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def output_dir(self, tmpdir_factory):
5454
self.tmpdir = tmpdir_factory.mktemp('tmp_session').strpath
5555

5656
def get_path(self, fname):
57-
return os.path.join(self.tmpdir, fname)
57+
return os.path.join(str(self.tmpdir), fname)
5858

5959
def assertObjListEqual(self, got, expected):
6060
assert len(got) == len(expected)

0 commit comments

Comments
 (0)