summaryrefslogtreecommitdiffstats
path: root/tests/test_manifest_xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_manifest_xml.py')
-rw-r--r--tests/test_manifest_xml.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_manifest_xml.py b/tests/test_manifest_xml.py
index b6ec5b86..1cb72971 100644
--- a/tests/test_manifest_xml.py
+++ b/tests/test_manifest_xml.py
@@ -18,6 +18,7 @@
18 18
19from __future__ import print_function 19from __future__ import print_function
20 20
21import os
21import unittest 22import unittest
22 23
23import error 24import error
@@ -78,6 +79,11 @@ class ManifestValidateFilePaths(unittest.TestCase):
78 # Block Unicode characters that get normalized out by filesystems. 79 # Block Unicode characters that get normalized out by filesystems.
79 u'foo\u200Cbar', 80 u'foo\u200Cbar',
80 ) 81 )
82 # Make sure platforms that use path separators (e.g. Windows) are also
83 # rejected properly.
84 if os.path.sep != '/':
85 PATHS += tuple(x.replace('/', os.path.sep) for x in PATHS)
86
81 for path in PATHS: 87 for path in PATHS:
82 self.assertRaises( 88 self.assertRaises(
83 error.ManifestInvalidPathError, self.check_both, path, 'a') 89 error.ManifestInvalidPathError, self.check_both, path, 'a')