We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66c0998 commit 6b9695cCopy full SHA for 6b9695c
tests/unit_tests/data_types/test_datetimes.py
@@ -68,7 +68,11 @@ async def test_datetime_iso_format(self):
68
69
# assert that the datetime returned from the DB is the same as the one serialized
70
date = compact_test_outcome[0]["datetime"].isoformat()
71
- self.assertEqual(date + "Z", iso_datetime)
+ date_to_compare = date + "Z"
72
+ if sys.version_info < (3, 11):
73
+ date_to_compare = date_to_compare.replace("Z", "+00:00")
74
+
75
+ self.assertEqual(date_to_compare, iso_datetime)
76
77
# Cleanup
78
await self.connection.query("DELETE datetime_tests;")
0 commit comments