mirror of
https://github.com/beetbox/beets.git
synced 2026-01-01 05:23:05 +01:00
Use native strings for IO in a test
This commit is contained in:
parent
b73bbf0b3e
commit
0e2b8a5b60
1 changed files with 6 additions and 4 deletions
|
|
@ -641,11 +641,13 @@ class InputTest(_common.TestCase):
|
|||
self.io.install()
|
||||
|
||||
def test_manual_search_gets_unicode(self):
|
||||
self.io.addinput(b'\xc3\x82me')
|
||||
self.io.addinput(b'\xc3\x82me')
|
||||
# The input here uses "native strings": bytes on Python 2, Unicode on
|
||||
# Python 3.
|
||||
self.io.addinput('foö')
|
||||
self.io.addinput('bár')
|
||||
artist, album = commands.manual_search(False)
|
||||
self.assertEqual(artist, u'\xc2me')
|
||||
self.assertEqual(album, u'\xc2me')
|
||||
self.assertEqual(artist, u'foö')
|
||||
self.assertEqual(album, u'bár')
|
||||
|
||||
|
||||
@_common.slow_test()
|
||||
|
|
|
|||
Loading…
Reference in a new issue