From b7a2a5a0607ac28254df2188396c21440c6672fc Mon Sep 17 00:00:00 2001 From: tudacs Date: Wed, 19 Dec 2018 19:19:05 +0100 Subject: [PATCH] Remove unnecessary code from tests --- tests/test_image.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_image.py b/tests/test_image.py index 5aeb73a..3510bf4 100644 --- a/tests/test_image.py +++ b/tests/test_image.py @@ -189,8 +189,7 @@ def test_get_iptc_data(caplog): assert data["headline"] == 'Ring Nebula, M57' # Test catching the SyntaxError -- assert output - config = {'getiptcinfo.side_effect':SyntaxError} - with patch('sigal.image.IptcImagePlugin.getiptcinfo', side_effect=SyntaxError) as i: + with patch('sigal.image.IptcImagePlugin.getiptcinfo', side_effect=SyntaxError): get_iptc_data(src_file) assert ['IPTC Error in'] == [ log.message[:13] for log in caplog.records ]