Skip to content

Commit

Permalink
Skipping tests in Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
pferate committed Mar 5, 2015
1 parent bf26b2a commit ad90c91
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

__author__ = '[email protected] (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 ad90c91

Please sign in to comment.