generated from dopt-python/py311
update test case for new exception output
This commit is contained in:
parent
84f1f6fb1b
commit
7a6081815c
@ -32,6 +32,10 @@ def test_print_error_state(tmp_path):
|
|||||||
lines: list[str]
|
lines: list[str]
|
||||||
with open(output_file, "r") as file:
|
with open(output_file, "r") as file:
|
||||||
lines = file.readlines()
|
lines = file.readlines()
|
||||||
|
try:
|
||||||
|
lines.remove("\n")
|
||||||
|
except ValueError: # pragma: no cover
|
||||||
|
pass
|
||||||
|
|
||||||
assert "following exception" in lines[0]
|
assert "following exception" in lines[0]
|
||||||
assert "Type: RuntimeError" in lines[1]
|
assert "Type: RuntimeError" in lines[1]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user