mirror of
https://github.com/beetbox/beets.git
synced 2026-01-18 06:05:06 +01:00
Removed unicode_literals from test_edit
This commit is contained in:
parent
59f670a29e
commit
b4d7ad1911
1 changed files with 3 additions and 4 deletions
|
|
@ -12,8 +12,7 @@
|
|||
# The above copyright notice and this permission notice shall be
|
||||
# included in all copies or substantial portions of the Software.
|
||||
|
||||
from __future__ import (division, absolute_import, print_function,
|
||||
unicode_literals)
|
||||
from __future__ import (division, absolute_import, print_function)
|
||||
import codecs
|
||||
|
||||
from mock import patch
|
||||
|
|
@ -202,7 +201,7 @@ class EditCommandTest(unittest.TestCase, TestHelper):
|
|||
# Apply changes.
|
||||
['a'])
|
||||
|
||||
self.assertEqual(self.lib.items('id:1')[0].foo, 'bar')
|
||||
self.assertEqual(self.lib.items(u'id:1')[0].foo, 'bar')
|
||||
self.assertCounts(write_call_count=1,
|
||||
title_starts_with=u't\u00eftle')
|
||||
|
||||
|
|
@ -249,7 +248,7 @@ class EditCommandTest(unittest.TestCase, TestHelper):
|
|||
"""Edit the yaml file incorrectly (resulting in a well-formed but
|
||||
invalid yaml document)."""
|
||||
# edit the yaml file to an invalid file
|
||||
self.run_mocked_command({'contents': 'wellformed: yes, but invalid'},
|
||||
self.run_mocked_command({'contents': u'wellformed: yes, but invalid'},
|
||||
# no stdin
|
||||
[])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue