mirror of
https://github.com/beetbox/beets.git
synced 2026-12-01 03:11:22 -06: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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user