1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 01:44:18 +00:00

Fix S3TestCase for precise env: we reraise TypeError as NotConfigured in this case

This commit is contained in:
Konstantin Lopuhin 2016-02-15 19:48:28 +03:00
parent e7c4806c5e
commit d1ecb8cd38

View File

@ -490,8 +490,12 @@ class S3TestCase(unittest.TestCase):
yield
def test_extra_kw(self):
self.assertRaises(
TypeError, S3DownloadHandler, Settings(), extra_kw=True)
try:
S3DownloadHandler(Settings(), extra_kw=True)
except Exception as e:
self.assertIsInstance(e, (TypeError, NotConfigured))
else:
assert False
def test_request_signing1(self):
# gets an object from the johnsmith bucket.