diff --git a/tests/integration/test_crt.py b/tests/integration/test_crt.py index b3fa7e0f..7f16d85e 100644 --- a/tests/integration/test_crt.py +++ b/tests/integration/test_crt.py @@ -511,20 +511,3 @@ def test_download_cancel(self): possible_matches = glob.glob('%s*' % download_path) self.assertEqual(possible_matches, []) self._assert_subscribers_called() - - def test_exception_translation(self): - # Test that CRT's S3ResponseError translates to botocore error - transfer = self._create_s3_transfer() - download_path = os.path.join( - self.files.rootdir, 'obviously-no-such-key.txt' - ) - with self.assertRaises(self.client.exceptions.NoSuchKey) as cm: - future = transfer.download( - self.bucket_name, - 'obviously-no-such-key.txt', - download_path, - subscribers=[self.record_subscriber], - ) - future.result() - - self.assertEqual(cm.exception.response['Error']['Code'], 'NoSuchKey')