#2927 fix test by using datetime.timezone instead of psycopg2.tz
Merged a month ago by tkopecek. Opened a month ago by julian8628.
julian8628/koji pg-tz  into  master

file modified
+1 -3
@@ -2,8 +2,6 @@ 

  

  import unittest

  import datetime

- import psycopg2

- import psycopg2.tz

  

  import koji

  import kojihub
@@ -85,7 +83,7 @@ 

                      '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',

Metadata Update from @julian8628:
- Pull-request tagged with: no_qe

a month ago

Commit cadede4 fixes this pull-request

Pull-Request has been merged by tkopecek

a month ago
Metadata