Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c605087

Browse files
committed
Skipping tests in Python3
1 parent c46e905 commit c605087

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/test_discovery.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ def test_nested_resources(self):
568568
q = parse_qs(parsed[4])
569569
self.assertEqual(q['max-results'], ['5'])
570570

571+
@unittest.skipIf(six.PY3, 'print is not a reserved name in Python 3')
571572
def test_methods_with_reserved_names(self):
572573
self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
573574
zoo = build('zoo', 'v1', http=self.http)

tests/test_http.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
__author__ = '[email protected] (Joe Gregorio)'
2525

26+
from six import PY3
2627
from six import BytesIO, StringIO
2728
from io import FileIO
2829
from six.moves.urllib.parse import urlencode
@@ -228,6 +229,7 @@ def test_media_io_base_upload_serializable(self):
228229
except NotImplementedError:
229230
pass
230231

232+
@unittest.skipIf(PY3, 'Strings and Bytes are different types')
231233
def test_media_io_base_upload_from_string_io(self):
232234
f = open(datafile('small.png'), 'rb')
233235
fd = StringIO(f.read())

0 commit comments

Comments
 (0)