File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments