Commit 93d5a243 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Add OSError for pytest

parent f9a580b1
Pipeline #39255 passed with stages
in 5 minutes and 23 seconds
......@@ -182,7 +182,7 @@ class TestNXWriter:
writer.write(, "test_no_overwrite")
writer2 = NXProcessWriter(fname, entry="entry0000", overwrite=False)
with pytest.raises(RuntimeError) as ex:
with pytest.raises((RuntimeError, OSError)) as ex:
writer2.write(, "test_no_overwrite")
message = "Error should have been raised for trying to overwrite, but got the following: %s" % str(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment