Scrapy, a fast high-level web crawling & scraping framework for Python.
Fix S3TestCase for precise env: we reraise TypeError as NotConfigured in this case
Konstantin Lopuhind1ecb8cd38bd
diff --git a/tests/test_downloader_handlers.py b/tests/test_downloader_handlers.pyindex e08d2e4a4..1885a53a0 100644--- a/tests/test_downloader_handlers.py+++ b/tests/test_downloader_handlers.py@@ -490,8 +490,12 @@ class S3TestCase(unittest.TestCase):yielddef 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 Falsedef test_request_signing1(self):# gets an object from the johnsmith bucket.