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:
Johnny Robeson 2016-08-01 18:33:59 -04:00
parent bb58a85083
commit 70b58c1905

View file

@ -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))