summaryrefslogtreecommitdiffstats
path: root/tests/test_manifest_xml.py
diff options
context:
space:
mode:
authorDaniel Kutik <daniel.kutik@lavawerk.com>2022-11-27 13:35:42 +0100
committerDaniel Kutik <daniel.kutik@lavawerk.com>2022-11-28 04:07:17 +0000
commit3593a10643a42596f2531240979fb59149804d48 (patch)
treee73c4e6291daa860a1afe21c16e12a78f5ddfd6c /tests/test_manifest_xml.py
parent003684b6e5aad4a4f44b77a3148f24fed97f060a (diff)
downloadgit-repo-3593a10643a42596f2531240979fb59149804d48.tar.gz
test_bad_path_name_checks: allow Windows path sep
With this change if a path ends with '/' on Linux/macOS and ends with either '/' or '\' on Windows, the test will pass. Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com> Change-Id: Id7d1b134f9c0bdf7ceaf149af304bbf90cbd7b21 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353180 Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'tests/test_manifest_xml.py')
-rw-r--r--tests/test_manifest_xml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_manifest_xml.py b/tests/test_manifest_xml.py
index 8aa97e70..c7e814a3 100644
--- a/tests/test_manifest_xml.py
+++ b/tests/test_manifest_xml.py
@@ -578,7 +578,7 @@ class ProjectElementTests(ManifestParseTestCase):
578 parse('', 'ok') 578 parse('', 'ok')
579 579
580 for path in INVALID_FS_PATHS: 580 for path in INVALID_FS_PATHS:
581 if not path or path.endswith('/'): 581 if not path or path.endswith('/') or path.endswith(os.path.sep):
582 continue 582 continue
583 583
584 with self.assertRaises(error.ManifestInvalidPathError): 584 with self.assertRaises(error.ManifestInvalidPathError):