Skip to content

Commit 0264cb0

Browse files
committed
Fix test_validate for windows
1 parent 97682f7 commit 0264cb0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_pipeline.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ def test_validate(self, filename):
8484
r = get_pipeline(filename)
8585
with pytest.raises(RuntimeError) as info:
8686
r.execute()
87-
assert "No such file or directory" in str(info.value)
87+
if os.name == "nt":
88+
assert "Unable to open stream for" in str(info.value)
89+
else:
90+
assert "No such file or directory" in str(info.value)
8891

8992
@pytest.mark.parametrize("filename", ["sort.json", "sort.py"])
9093
def test_array(self, filename):

0 commit comments

Comments
 (0)