From c16568a8d4372c2b8b6779eae3eff983b8ed1ea9 Mon Sep 17 00:00:00 2001 From: javrin Date: Sun, 25 Jun 2023 10:56:50 -0400 Subject: [PATCH] Test path convert with empty paths as is the case with variant subpaths Signed-off-by: javrin --- src/rez/tests/test_utils.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/rez/tests/test_utils.py b/src/rez/tests/test_utils.py index e0099c1c1..16cc8fccb 100644 --- a/src/rez/tests/test_utils.py +++ b/src/rez/tests/test_utils.py @@ -115,6 +115,15 @@ def test_convert_mixed_override_path_sep(self): self.assertEqual(converted_path, expected_path) + @platform_dependent(["windows"]) + def test_convert_empty_path(self): + """Test the path conversion on empty paths. + Path conversion can expect empty paths when normalizing rex paths such as + variant subpaths. + """ + converted_path = cygpath.convert('') + self.assertEqual(converted_path, '') + class TestToPosixPath(TestBase):