8000 Fix GitHubCore._strptime() test on Python 2.6 · bmoar/github3.py@6da9374 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6da9374

Browse files
committed
Fix GitHubCore._strptime() test on Python 2.6
1 parent 7b3e462 commit 6da9374

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from datetime import timedelta
12
import github3
23
import requests
34
from tests.utils import BaseCase, TestCase, RequestsBytesIO, is_py3
@@ -39,8 +40,8 @@ def test_boolean(self):
3940
def test_strptime(self):
4041
dt = self.g._strptime('2013-06-18T19:53:04Z')
4142
assert dt.tzname() == 'UTC'
42-
assert dt.dst().total_seconds() == 0
43-
assert dt.utcoffset().total_seconds() == 0
43+
assert dt.dst() == timedelta(0)
44+
assert dt.utcoffset() == timedelta(0)
4445

4546

4647
class TestGitHubError(TestCase):

0 commit comments

Comments
 (0)
0