diff --git a/product/gradle-plugin/src/test/integration/test_gradle_plugin.py b/product/gradle-plugin/src/test/integration/test_gradle_plugin.py index 26cf6ab78a..96b464bdc0 100644 --- a/product/gradle-plugin/src/test/integration/test_gradle_plugin.py +++ b/product/gradle-plugin/src/test/integration/test_gradle_plugin.py @@ -714,9 +714,10 @@ def test_missing_both(self): # Test a buildPython which returns success without doing anything (#5631). def test_silent_failure(self): run = self.RunGradle("base", "BuildPython/silent_failure", succeed=False) - self.assertInStderr( - f"{join('python', 'env', 'debug', '[Ll]ib')} does not exist", - run, re=True) + lib_path = "python/env/debug/lib" + if os.name == "nt": + lib_path = lib_path.replace("/", "\\").replace("lib", "Lib") + self.assertInStderr(f"{lib_path} does not exist", run) def test_variant(self): run = self.RunGradle("base", "BuildPython/variant", variants=["red-debug"],