mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
This commit fix `RangeTest.test_range_iterators_invocation` in [`test_range.py`](https://github.com/RustPython/RustPython/blob/main/Lib/test/test_range.py#L507). This is last `TODO` in `test_range.py`. By add slot tp_new to both types and return new_type_error, prevent creation of range_iterator and longrange_iterator by calling its type. Signed-off-by: snowapril <sinjihng@gmail.com>
23 KiB
Vendored
23 KiB
Vendored