提交 d1ecb8cd 编写于 作者: K Konstantin Lopuhin

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

上级 e7c4806c
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册