From 38d9132beaa247e3732a3a3fff702989d3ec58c3 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Fri, 12 May 2023 08:16:27 +0200 Subject: [PATCH] Only run test on windows with clock feature --- src/datetime/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datetime/tests.rs b/src/datetime/tests.rs index 00989fb313..08d94afc8c 100644 --- a/src/datetime/tests.rs +++ b/src/datetime/tests.rs @@ -950,7 +950,7 @@ fn test_datetime_sub_assign_local() { } #[test] -#[cfg(target_os = "windows")] +#[cfg(all(target_os = "windows", feature = "clock"))] fn test_from_naive_date_time_windows() { let min_year = NaiveDate::from_ymd_opt(1601, 1, 3).unwrap().and_hms_opt(0, 0, 0).unwrap();