Skip to content

Commit 1be9032

Browse files
committed
py3: properly skip s3 tests on py3
1 parent 097082c commit 1be9032

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_downloader_handlers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ class S3AnonTestCase(unittest.TestCase):
437437
import boto
438438
except ImportError:
439439
skip = 'missing boto library'
440+
if six.PY3:
441+
skip = 'S3 not supported on Py3'
440442

441443
def setUp(self):
442444
self.s3reqh = S3DownloadHandler(Settings(),
@@ -459,6 +461,8 @@ class S3TestCase(unittest.TestCase):
459461
import boto
460462
except ImportError:
461463
skip = 'missing boto library'
464+
if six.PY3:
465+
skip = 'S3 not supported on Py3'
462466

463467
# test use same example keys than amazon developer guide
464468
# http://s3.amazonaws.com/awsdocs/S3/20060301/s3-dg-20060301.pdf

0 commit comments

Comments
 (0)