diff --git a/tests/test_array_agg.py b/tests/test_array_agg.py index 7c47320..9034fa9 100644 --- a/tests/test_array_agg.py +++ b/tests/test_array_agg.py @@ -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, diff --git a/tests/test_obj_agg.py b/tests/test_obj_agg.py index cf3b50d..5645210 100644 --- a/tests/test_obj_agg.py +++ b/tests/test_obj_agg.py @@ -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,