diff --git a/src/fmt.rs b/src/fmt.rs index bd3516d6..3b1ede7e 100644 --- a/src/fmt.rs +++ b/src/fmt.rs @@ -55,7 +55,7 @@ impl fmt::Display for Format { } } -#[cfg(test)] +#[cfg(all(test, feature = "color", not(target_os = "windows")))] mod test { use super::Format; use ansi_term::Colour::{Green, Red, Yellow};