From 11d88ee7092628bdb5916f64ba7f266e33574d62 Mon Sep 17 00:00:00 2001 From: Yu Ming Zhu Date: Jun 23 2021 10:04:59 +0000 Subject: fix test by using datetime.timezone instead of psycopg2.tz according to https://www.psycopg.org/docs/tz.html fixes: #2926 --- diff --git a/tests/test_hub/test_repos.py b/tests/test_hub/test_repos.py index fc9b912..48c7cd7 100644 --- a/tests/test_hub/test_repos.py +++ b/tests/test_hub/test_repos.py @@ -2,8 +2,6 @@ import mock import unittest import datetime -import psycopg2 -import psycopg2.tz import koji import kojihub @@ -85,7 +83,7 @@ class TestRepoFunctions(unittest.TestCase): 'state': 0, 'task_id': 15, 'create_event': 32, - 'creation_time': datetime.datetime(2021, 3, 30, 12, 34, 5, 204023, tzinfo=psycopg2.tz.FixedOffsetTimezone(offset=0, name=None)), + 'creation_time': datetime.datetime(2021, 3, 30, 12, 34, 5, 204023, tzinfo=datetime.timezone.utc), 'create_ts': 1617107645.204023, 'tag_id': 3, 'tag_name': 'test-tag',