diff --git a/tests/unit/style/properties/scaffolding.rs b/tests/unit/style/properties/scaffolding.rs index f4fb064301a..b2225225201 100644 --- a/tests/unit/style/properties/scaffolding.rs +++ b/tests/unit/style/properties/scaffolding.rs @@ -32,6 +32,10 @@ fn properties_list_json() { #[cfg(windows)] fn find_python() -> String { + if Command::new("python2.7.exe").arg("--version").output().is_ok() { + return "python2.7.exe".to_owned(); + } + if Command::new("python27.exe").arg("--version").output().is_ok() { return "python27.exe".to_owned(); }