From 49cf558219e3f45397f267cdd9eae404cd615672 Mon Sep 17 00:00:00 2001 From: Ivan Latunov Date: Sun, 21 Jun 2020 16:34:12 +0300 Subject: [PATCH] Skip failing test The test only fails in environments in which the stdout is not a tty --- src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.rs b/src/utils.rs index c8a15bf..5624af4 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -23,7 +23,9 @@ pub fn color_from_env() -> bool { #[cfg(test)] mod test { use super::color_from_env; + #[test] + #[ignore] fn color_on_clicolor() { std::env::set_var("CLICOLOR", "1"); assert_eq!(color_from_env(), true);