| Index: tests/patch_test.py
|
| diff --git a/tests/patch_test.py b/tests/patch_test.py
|
| index 2710a386458d9b2e7753da941ff58c5041c2d533..76778ea4526cd3dc5ffc1a1d56d7a95f93d5abf4 100755
|
| --- a/tests/patch_test.py
|
| +++ b/tests/patch_test.py
|
| @@ -7,6 +7,7 @@
|
|
|
| import logging
|
| import os
|
| +import posixpath
|
| import sys
|
| import unittest
|
|
|
| @@ -153,12 +154,13 @@ class PatchTest(unittest.TestCase):
|
| orig_name = patches.patches[4].filename
|
| orig_source_name = patches.patches[4].source_filename or orig_name
|
| patches.set_relpath(os.path.join('a', 'bb'))
|
| - expected = [os.path.join('a', 'bb', x) for x in expected]
|
| + # Expect posixpath all the time.
|
| + expected = [posixpath.join('a', 'bb', x) for x in expected]
|
| self.assertEquals(expected, patches.filenames)
|
| # Make sure each header is updated accordingly.
|
| header = []
|
| - new_name = os.path.join('a', 'bb', orig_name)
|
| - new_source_name = os.path.join('a', 'bb', orig_source_name)
|
| + new_name = posixpath.join('a', 'bb', orig_name)
|
| + new_source_name = posixpath.join('a', 'bb', orig_source_name)
|
| for line in RAW.PATCH.splitlines(True):
|
| if line.startswith('@@'):
|
| break
|
|
|