Skip to content

Commit

Permalink
Skipping tests in Python3
Browse files Browse the repository at this point in the history
test_discovery/test_methods_with_reserved_names
test_http/test_media_io_base_upload_from_string_io
  • Loading branch information
pferate committed Mar 4, 2015
1 parent d64f390 commit 749477c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_discovery.py
Expand Up @@ -568,6 +568,7 @@ def test_nested_resources(self):
q = parse_qs(parsed[4])
self.assertEqual(q['max-results'], ['5'])

@unittest.skipIf(six.PY3, 'print is not a reserved name in Python 3')
def test_methods_with_reserved_names(self):
self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
zoo = build('zoo', 'v1', http=self.http)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_http.py
Expand Up @@ -23,6 +23,7 @@

__author__ = 'jcgregorio@google.com (Joe Gregorio)'

from six import PY3
from six import BytesIO, StringIO
from io import FileIO
from six.moves.urllib.parse import urlencode
Expand Down Expand Up @@ -228,6 +229,7 @@ def test_media_io_base_upload_serializable(self):
except NotImplementedError:
pass

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

0 comments on commit 749477c

Please sign in to comment.