mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
PEP 3114: rename .next() to .__next__() and add next() builtin.
This commit is contained in:
parent
4d2adcca52
commit
a18af4e7a2
83 changed files with 495 additions and 425 deletions
|
|
@ -16,9 +16,9 @@ class TestSFbugs(unittest.TestCase):
|
|||
def test_comparing_empty_lists(self):
|
||||
# Check fix for bug #979794
|
||||
group_gen = difflib.SequenceMatcher(None, [], []).get_grouped_opcodes()
|
||||
self.assertRaises(StopIteration, group_gen.next)
|
||||
self.assertRaises(StopIteration, next, group_gen)
|
||||
diff_gen = difflib.unified_diff([], [])
|
||||
self.assertRaises(StopIteration, diff_gen.next)
|
||||
self.assertRaises(StopIteration, next, diff_gen)
|
||||
|
||||
patch914575_from1 = """
|
||||
1. Beautiful is beTTer than ugly.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue