From 00ce3bed80421d1f78cd58599fa89b1e12bd9207 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Sun, 26 Nov 2023 22:06:35 -0700 Subject: [PATCH] Remove CRT translation integ test --- tests/integration/test_crt.py | 17 ----------------- 1 file changed, 17 deletions(-) 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')