From 559c630d2f034a46284d4f9b7d3356651cc45633 Mon Sep 17 00:00:00 2001 From: Christopher Rabotin Date: Sun, 20 Aug 2023 09:39:48 -0600 Subject: [PATCH] Fix minor CI issues --- src/efmt/format.rs | 1 + tests/python/test_epoch.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/efmt/format.rs b/src/efmt/format.rs index d4498b5f..e1819dab 100644 --- a/src/efmt/format.rs +++ b/src/efmt/format.rs @@ -530,6 +530,7 @@ fn epoch_format_from_str() { assert_eq!(fmt, crate::efmt::consts::RFC2822); } +#[cfg(feature = "std")] #[test] fn gh_248_regression() { let e = Epoch::from_format_str("2023-117T12:55:26", "%Y-%jT%H:%M:%S").unwrap(); diff --git a/tests/python/test_epoch.py b/tests/python/test_epoch.py index 0e2c7265..7bafd521 100644 --- a/tests/python/test_epoch.py +++ b/tests/python/test_epoch.py @@ -22,7 +22,7 @@ def test_utcnow(): dt = datetime.utcnow() # Hifitime uses a different clock to Python and print down to the nanosecond - assert dt.isoformat()[:21] == f"{epoch}"[:21] + assert dt.isoformat()[:20] == f"{epoch}"[:20] def test_time_series():