Skip to content

Commit 6948a2f

Browse files
committed
Make the IssueEvent tests pass on Python 2.7.
1 parent 22a1bbf commit 6948a2f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/unit/test_issues_issue.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
"""Unit tests for the Issue class."""
33
import github3
4-
import datetime
4+
import dateutil.parser
55
import mock
66

77
from github3.issues.label import Label
@@ -452,8 +452,7 @@ def test_repr(self):
452452

453453
def test_created_at(self):
454454
"""Show that the instance has a correct created_at datetime."""
455-
expected = datetime.datetime(
456-
2011, 4, 14, 16, 0, 49, tzinfo=datetime.timezone.utc)
455+
expected = dateutil.parser.parse('2011-04-14T16:00:49Z')
457456
assert self.instance.created_at == expected
458457

459458
def test_assignee(self):

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