Skip to content

Commit e5194f4

Browse files
committed
tmp_path failing on windows
1 parent 2ee242d commit e5194f4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_xopen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def test_roundtrip(ext, tmp_path, threads, mode):
114114
if ext == ".zst" and threads == 0 and zstandard is None:
115115
return
116116
path = tmp_path / f"file{ext}"
117+
if not path.parent.exists():
118+
path.mkdir()
117119
data = b"Hello" if mode == "b" else "Hello"
118120
with xopen(path, "w" + mode, threads=threads) as f:
119121
f.write(data)

0 commit comments

Comments
 (0)