Skip to content

Commit ddc4def

Browse files
committed
convert tmpdir (which is a LocalPath object) to a string otherwise os.path.join will fail using Python <= 3.5 --> test_axis.py and test_group.py
1 parent 79605cc commit ddc4def

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

larray/tests/test_axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def test_h5_io(tmpdir):
366366
lipro = Axis('lipro=P01..P05')
367367
anonymous = Axis(range(3))
368368
wildcard = Axis(3, 'wildcard')
369-
fpath = os.path.join(tmpdir, 'axes.h5')
369+
fpath = os.path.join(str(tmpdir), 'axes.h5')
370370

371371
# ---- default behavior ----
372372
# int axis

larray/tests/test_group.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def test_to_float_lgroup():
136136
assert float(a['42']) == 42.0
137137

138138
def test_h5_io_lgroup(tmpdir):
139-
fpath = os.path.join(tmpdir, 'lgroups.h5')
139+
fpath = os.path.join(str(tmpdir), 'lgroups.h5')
140140
age.to_hdf(fpath)
141141

142142
named = age[':5'] >> 'age_05'
@@ -342,7 +342,7 @@ def test_to_float_igroup():
342342
assert float(a.i[0]) == 42.0
343343

344344
def test_h5_io_igroup(tmpdir):
345-
fpath = os.path.join(tmpdir, 'igroups.h5')
345+
fpath = os.path.join(str(tmpdir), 'igroups.h5')
346346
age.to_hdf(fpath)
347347

348348
named = age.i[:6] >> 'age_05'

0 commit comments

Comments
 (0)