Skip to content

Commit

Permalink
Remove CRT translation integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt committed Nov 27, 2023
1 parent 4c498e7 commit 00ce3be
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/integration/test_crt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 00ce3be

Please sign in to comment.