Adjust for change to documention change of next in Python 3.12

The signature of the builtin isn't actually changing in Python 3.12,
however its documentation has changed.
This commit is contained in:
Peter Law
2023-09-17 18:24:59 +01:00
parent 770cdade00
commit a60fdba1d4
2 changed files with 7 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ from ..helpers import get_example_dir
'code, sig, names, op, version', [
('import math; math.cos', 'cos(x, /)', ['x'], ge, (3, 6)),
('next', 'next(iterator, default=None, /)', ['iterator', 'default'], ge, (3, 6)),
('next', 'next(iterator, default=None, /)', ['iterator', 'default'], lt, (3, 12)),
('next', 'next()', [], ge, (3, 12)),
('str', "str(object='', /) -> str", ['object'], ge, (3, 6)),