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):