From 411615dea4e30ab5e6174b6bf6eaa9966a412e4f Mon Sep 17 00:00:00 2001 From: Doug Latornell Date: Fri, 8 May 2026 11:53:42 -0700 Subject: [PATCH] Update timezone comparison in `test_nc_tools` Changed `dateutil.tz.tzutc()` to `datetime.timezone.utc` in the timezone comparison assertion in `test_nc_tools.py`. This ensures compatibility with Python's standard library and resolves a failing test due to mismatched timezone objects. --- SalishSeaTools/tests/test_nc_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SalishSeaTools/tests/test_nc_tools.py b/SalishSeaTools/tests/test_nc_tools.py index 1310ca1e..56eec834 100644 --- a/SalishSeaTools/tests/test_nc_tools.py +++ b/SalishSeaTools/tests/test_nc_tools.py @@ -233,7 +233,7 @@ def test_time_origin_UTC_timezone(nc_dataset): time_counter = nc_dataset.createVariable("time_counter", float, ("time_counter",)) time_counter.time_origin = "2002-OCT-26 00:00:00" time_origin = nc_tools.time_origin(nc_dataset) - assert time_origin.tzinfo == dateutil.tz.tzutc() + assert time_origin.tzinfo == datetime.timezone.utc def test_time_origin_missing(nc_dataset):