mirror of https://github.com/scrapy/scrapy.git
Fix S3TestCase for precise env: we reraise TypeError as NotConfigured in this case
This commit is contained in:
parent
e7c4806c5e
commit
d1ecb8cd38
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue