summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_userlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_userlist.py')
-rw-r--r--Lib/test/test_userlist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_userlist.py b/Lib/test/test_userlist.py
index 8c7ef2e..e9fbd2d 100644
--- a/Lib/test/test_userlist.py
+++ b/Lib/test/test_userlist.py
@@ -51,7 +51,7 @@ class UserListTest(list_tests.CommonTest):
class T(self.type2test):
def __getitem__(self, key):
return str(key) + '!!!'
- self.assertEqual(iter(T((1,2))).next(), "0!!!")
+ self.assertEqual(next(iter(T((1,2)))), "0!!!")
def test_main():
test_support.run_unittest(UserListTest)