Permalink
Browse files

No prefix on u'' in Python 3

  • Loading branch information...
1 parent 6cfe040 commit 8f34a0d1bccf8fcb7f0eab6d388d838603818e8b @dbr committed Apr 6, 2015
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/test_tvdb_api.py
@@ -216,8 +216,8 @@ def test_repr_show(self):
"""Check repr() of Season
"""
self.assertEquals(
- repr(self.t['CNNNN']),
- "<Show u'Chaser Non-Stop News Network (CNNNN)' (containing 3 seasons)>"
+ repr(self.t['CNNNN']).replace("u'", "'"),
+ "<Show 'Chaser Non-Stop News Network (CNNNN)' (containing 3 seasons)>"
)
def test_repr_season(self):
"""Check repr() of Season
@@ -230,8 +230,8 @@ def test_repr_episode(self):
"""Check repr() of Episode
"""
self.assertEquals(
- repr(self.t['CNNNN'][1][1]),
- "<Episode 01x01 - u'Terror Alert'>"
+ repr(self.t['CNNNN'][1][1]).replace("u'", "'"),
+ "<Episode 01x01 - 'Terror Alert'>"
)
def test_have_all_languages(self):
"""Check valid_languages is up-to-date (compared to languages.xml)

0 comments on commit 8f34a0d

Please sign in to comment.