mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
use normpath() in all cases for assert_equal_path
This fixes issues with comparing string (via syspath) and bytestring paths on Windows.
This commit is contained in:
parent
bb58a85083
commit
70b58c1905
1 changed files with 0 additions and 4 deletions
|
|
@ -138,10 +138,6 @@ class Assertions(object):
|
|||
|
||||
def assert_equal_path(self, a, b):
|
||||
"""Check that two paths are equal."""
|
||||
# The common case.
|
||||
if a == b:
|
||||
return
|
||||
|
||||
self.assertEqual(util.normpath(a), util.normpath(b),
|
||||
u'paths are not equal: {!r} and {!r}'.format(a, b))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue