From f60529fda1954ade0c5a1840a3cb0a118d64d5c3 Mon Sep 17 00:00:00 2001 From: "Stephen C. Pope" Date: Wed, 18 Sep 2024 16:54:31 -0600 Subject: [PATCH] Update test_attributes.py --- descarteslabs/core/common/client/tests/test_attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/descarteslabs/core/common/client/tests/test_attributes.py b/descarteslabs/core/common/client/tests/test_attributes.py index 02cee71d..12be04f7 100644 --- a/descarteslabs/core/common/client/tests/test_attributes.py +++ b/descarteslabs/core/common/client/tests/test_attributes.py @@ -171,7 +171,7 @@ class TzTest(Document): print(f"doc.date {type(doc.date)} {doc.date}") print(f"doc.date.tzinfo {type(doc.date.tzinfo)} {doc.date.tzinfo}") print(f"pytz.timezone(MST) {type(pytz.timezone('MST'))} {pytz.timezone('MST')}") - assert doc.date.tzinfo == pytz.timezone("MST") + assert doc.date.tzinfo is pytz.timezone("MST") assert doc.date.astimezone(tz=timezone.utc) == now.replace(tzinfo=timezone.utc) assert doc.to_dict()["date"] == now.replace(tzinfo=timezone.utc).isoformat()