Skip to content

Commit

Permalink
fix: adjust code for python 3.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-fs committed Jul 8, 2024
1 parent 967bf5a commit 84176da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_array_agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_aggregate_datetime(faker: Faker, db_vendor: str):
kw = {}
if db_vendor == "postgresql":
# enforce tz for postgresql only - sqlite don't support it.
kw = dict(tzinfo=datetime.UTC)
kw = dict(tzinfo=datetime.timezone.utc)

expected_value_per_author_name = post_factory(
faker,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_obj_agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_aggregate_datetime(faker: Faker, db_vendor: str):
kw = {}
if db_vendor == "postgresql":
# enforce tz for postgresql only - sqlite don't support it.
kw = dict(tzinfo=datetime.UTC)
kw = dict(tzinfo=datetime.timezone.utc)

expected_value_per_author_name = post_factory(
faker,
Expand Down

0 comments on commit 84176da

Please sign in to comment.