summaryrefslogtreecommitdiff
path: root/testsuite/test_util.py
diff options
context:
space:
mode:
authorJPeterMugaas <jpmugaas@suddenlink.net>2020-11-04 13:02:50 -0500
committerJPeterMugaas <jpmugaas@suddenlink.net>2020-11-04 13:02:50 -0500
commit8dcb7573a2c3a469b2182831dc98fbb693fe0f6d (patch)
tree955b9052b0490a39df6ad26c2f20432edd631d05 /testsuite/test_util.py
parenta1b1f7c795ace4c186fd76ec6df994deb716cea8 (diff)
downloadpep8-8dcb7573a2c3a469b2182831dc98fbb693fe0f6d.tar.gz
Fix tests to handle paths in Windows. NormalizePath works properly but the tests would still fail because NormalizePath would NOT work as the test results expected.
Diffstat (limited to 'testsuite/test_util.py')
-rw-r--r--testsuite/test_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/test_util.py b/testsuite/test_util.py
index 8eaba7e..7eff16a 100644
--- a/testsuite/test_util.py
+++ b/testsuite/test_util.py
@@ -18,6 +18,6 @@ class UtilTestCase(unittest.TestCase):
self.assertEqual(normalize_paths('foo,bar'), ['foo', 'bar'])
self.assertEqual(normalize_paths('foo, bar '), ['foo', 'bar'])
self.assertEqual(normalize_paths('/foo/bar,baz/../bat'),
- ['/foo/bar', cwd + '/bat'])
+ [os.path.realpath('/foo/bar'), cwd + '/bat'])
self.assertEqual(normalize_paths(".pyc,\n build/*"),
['.pyc', cwd + '/build/*'])