From 153274ef55ce06c005d0674b6f67234f30887f97 Mon Sep 17 00:00:00 2001 From: Michael Penkov Date: Fri, 31 May 2019 10:02:49 +0900 Subject: [PATCH] Fix merge artifact Two separate PRs were touching the same code. [1] modified the bucket handling to perform it at module load time. In the meanwhile, [2] fixed a broken test by relying on functionality that wasn't around after [1] got merged. [1] https://github.com/RaRe-Technologies/smart_open/pull/318 [2] https://github.com/RaRe-Technologies/smart_open/pull/322 --- smart_open/tests/test_s3.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/smart_open/tests/test_s3.py b/smart_open/tests/test_s3.py index c712ac92..60cdf0a4 100644 --- a/smart_open/tests/test_s3.py +++ b/smart_open/tests/test_s3.py @@ -382,8 +382,6 @@ def test_nonexisting_bucket(self): fout.write(expected) def test_read_nonexisting_key(self): - create_bucket_and_key() - with self.assertRaises(ValueError): with smart_open.s3.open(BUCKET_NAME, 'my_nonexisting_key', 'rb') as fin: fin.read()