Fix BaseLineParser::test_double_open.
Don't tie the test to a particular error message. Ths failed because a typo was fixed (AppendLineParser -> LineParser).
This commit is contained in:
parent
b1b521e0c2
commit
39b561a182
@ -58,8 +58,7 @@ class TestBaseLineParser:
|
||||
mocker.patch('builtins.open', mock.mock_open())
|
||||
|
||||
with lineparser._open('r'):
|
||||
with pytest.raises(IOError, match="Refusing to double-open "
|
||||
"AppendLineParser."):
|
||||
with pytest.raises(IOError):
|
||||
with lineparser._open('r'):
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user