From 39b561a1821689a933ca31a64b2ece47e03adff5 Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Wed, 24 May 2017 07:38:24 -0400 Subject: [PATCH] Fix BaseLineParser::test_double_open. Don't tie the test to a particular error message. Ths failed because a typo was fixed (AppendLineParser -> LineParser). --- tests/unit/misc/test_lineparser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/misc/test_lineparser.py b/tests/unit/misc/test_lineparser.py index adae2485d..dcdb724cd 100644 --- a/tests/unit/misc/test_lineparser.py +++ b/tests/unit/misc/test_lineparser.py @@ -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