From 77ebb136840acaa700b6c0ada5e028217a503cfe Mon Sep 17 00:00:00 2001 From: Konstantin Lopuhin Date: Mon, 15 Feb 2016 19:26:15 +0300 Subject: [PATCH] fix assertRaises for precise env --- tests/test_downloader_handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_downloader_handlers.py b/tests/test_downloader_handlers.py index f34a286c2..e08d2e4a4 100644 --- a/tests/test_downloader_handlers.py +++ b/tests/test_downloader_handlers.py @@ -490,8 +490,8 @@ class S3TestCase(unittest.TestCase): yield def test_extra_kw(self): - with self.assertRaises(TypeError): - S3DownloadHandler(Settings(), extra_kw=True) + self.assertRaises( + TypeError, S3DownloadHandler, Settings(), extra_kw=True) def test_request_signing1(self): # gets an object from the johnsmith bucket.