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:
Ryan Roden-Corrent 2017-05-24 07:38:24 -04:00
parent b1b521e0c2
commit 39b561a182

View File

@ -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