Skip to content

Commit 6eb56a7

Browse files
fix test for python 3.6
1 parent c5e71a7 commit 6eb56a7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

tests/test_client.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,11 +1291,9 @@ def test_context_manager_exit_on_error(self):
12911291
session = mock.Mock()
12921292
session.get.return_value = response
12931293

1294-
with (
1295-
miniflux.Client("http://localhost", "username", "password", session=session) as client,
1296-
self.assertRaises(ServerError)
1297-
):
1298-
client.get_version()
1294+
with miniflux.Client("http://localhost", "username", "password", session=session) as client:
1295+
with self.assertRaises(ServerError):
1296+
client.get_version()
12991297

13001298
session.close.assert_called()
13011299

0 commit comments

Comments
 (0)