From 70b58c19059bec91c2806202125bd7e6e5a8a7db Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Mon, 1 Aug 2016 18:33:59 -0400 Subject: [PATCH] use normpath() in all cases for assert_equal_path This fixes issues with comparing string (via syspath) and bytestring paths on Windows. --- test/_common.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/_common.py b/test/_common.py index dac6c982a..f2e0ddcf8 100644 --- a/test/_common.py +++ b/test/_common.py @@ -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))