8000 Python 3.x compatibility - use built-in. · Twilio-api/twilio-python@e91eedd · GitHub
[go: up one dir, main page]

Skip to content

Commit e91eedd

Browse files
committed
Python 3.x compatibility - use built-in.
1 parent 44429e7 commit e91eedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_calls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_paging_iter(mock):
4949
mock.return_value = resp
5050

5151
uri = "%s/Calls" % (BASE_URI)
52-
list_resource.iter(started_before=date(2010, 12, 5)).next()
52+
next(list_resource.iter(started_before=date(2010, 12, 5)))
5353
exp_params = {'StartTime<': '2010-12-05'}
5454

5555
mock.assert_called_with("GET", uri, params=exp_params, auth=AUTH)

0 commit comments

Comments
 (0)
0