added os platform condition for test
@@ -397,6 +397,7 @@ compiler:
settings.compiler.version = "14"
with tools.environment_append({"vs140comntools": "path/to/fake"}):
tools.vcvars_command(settings)
+ if platform.system() != "Windows":
self.assertIn("VS non-existing installation", new_out.getvalue())
with tools.environment_append({"VisualStudioVersion": "12"}):
