Skip to content

Commit

Permalink
Fix TestTrack.test_str failure due to Track.__str__ change.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohannes committed Apr 28, 2017
1 parent d354a99 commit e35c3cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/xl/trax/test_track.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ def test_str(self, test_track):
loc = test_track.filename
tr = track.Track(loc)
self.empty_track_of_tags(tr, ('__loc',))
trstr = "'Unknown (%s)' from 'Unknown' by 'Unknown'" \
trstr = "<Track u'Unknown (%s)' by u'' from u''>" \
% os.path.basename(loc)
assert str(tr) == trstr
tr.set_tag_raw('artist', 'art')
tr.set_tag_raw('album', 'alb')
tr.set_tag_raw('title', 'title')
assert str(tr) == "'title' from 'alb' by 'art'"
assert str(tr) == "<Track u'title' by u'art' from u'alb'>"

def test_read_tags_no_perms(self, test_track_fp):

Expand Down

0 comments on commit e35c3cc

Please sign in to comment.