Skip to content

Commit

Permalink
support older pythons also
Browse files Browse the repository at this point in the history
  • Loading branch information
gijzelaerr committed Nov 2, 2024
1 parent f7bc398 commit 898cc76
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
pointer,
Array,
)
from datetime import datetime, timedelta, UTC
from datetime import datetime, timedelta, timezone
from multiprocessing import Process
from unittest import mock
from typing import cast as typing_cast
Expand Down Expand Up @@ -804,10 +804,12 @@ def test_get_pg_block_info(self) -> None:
self.assertEqual(99, block_info.BlkNumber)
self.assertEqual(2752512, block_info.SBBLength)
self.assertEqual(
bytes((datetime(2019, 6, 27, tzinfo=UTC).astimezone().strftime("%Y/%m/%d")), encoding="utf-8"), block_info.CodeDate
bytes((datetime(2019, 6, 27, tzinfo=timezone.utc).astimezone().strftime("%Y/%m/%d")), encoding="utf-8"),
block_info.CodeDate,
)
self.assertEqual(
bytes((datetime(2019, 6, 27, tzinfo=UTC).astimezone().strftime("%Y/%m/%d")), encoding="utf-8"), block_info.IntfDate
bytes((datetime(2019, 6, 27, tzinfo=timezone.utc).astimezone().strftime("%Y/%m/%d")), encoding="utf-8"),
block_info.IntfDate,
)

def test_iso_exchange_buffer(self) -> None:
Expand Down

0 comments on commit 898cc76

Please sign in to comment.