Skip to content

Commit ea83612

Browse files
committed
Python 2.7 compatibility fixes
1 parent 473a62d commit ea83612

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/integration/test_checks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Integration tests for methods implemented on Check* classes."""
22
import datetime
33

4+
import dateutil
45
import pytest
56

67
import github3
@@ -156,7 +157,7 @@ def test_update_check_run(self):
156157
check_run.refresh()
157158
assert check_run.status == "in_progress"
158159
completed_at = datetime.datetime(
159-
2019, 1, 1, 13, 37, tzinfo=datetime.timezone.utc
160+
2019, 1, 1, 13, 37, tzinfo=dateutil.tz.UTC
160161
)
161162
assert check_run.update(
162163
status="completed",
@@ -219,7 +220,7 @@ def test_check_run_annotations(self):
219220
assert len(list(check_run.output.annotations())) == 3
220221

221222
completed_at = datetime.datetime(
222-
2019, 1, 1, 13, 37, tzinfo=datetime.timezone.utc
223+
2019, 1, 1, 13, 37, tzinfo=dateutil.tz.UTC
223224
)
224225
assert check_run.update(
225226
status="completed",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy