Skip to content

Commit 6c01a18

Browse files
committed
Fix the python3 errors on Travis.
1 parent 213adf4 commit 6c01a18

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_issues.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_milestone(self):
5858
expect(self.issue.milestone).isinstance(Milestone)
5959

6060
def test_iter_comments(self):
61-
expect(self.issue.iter_comments().next()).isinstance(IssueComment)
61+
expect(next(self.issue.iter_comments())).isinstance(IssueComment)
6262

6363
def test_list_comments(self):
6464
self.expect_list_of_class(self.issue.list_comments(), IssueComment)

tests/test_orgs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_is_public_member(self):
2323
expect(self.org.is_public_member(self.sigm)).is_True()
2424

2525
def test_iter_events(self):
26-
expect(self.org.iter_events().next()).isinstance(Event)
26+
expect(next(self.org.iter_events())).isinstance(Event)
2727

2828
def test_list_events(self):
2929
expect(self.org.list_events()).list_of(Event)
@@ -125,7 +125,7 @@ def test_with_auth(self):
125125
pass
126126

127127
try:
128-
expect(org.iter_teams().next()).isinstance(Team)
128+
expect(next(org.iter_teams())).isinstance(Team)
129129
except github3.GitHubError:
130130
pass
131131

0 commit comments

Comments
 (0)