pytoolz / toolz

A functional standard library for Python.
http://toolz.readthedocs.org/
Other
4.57k stars 258 forks source link

Test fixes for changes in recent upstream Python (#581) #582

Open AdamWill opened 3 weeks ago

AdamWill commented 3 weeks ago

This includes a couple of fixes for changes in recent Python: 3.13 deindents docstrings, and a fix for inspecting wrappers was landed in 3.13 and backported to 3.12.3 and 3.11.9, which breaks the expectations of the test_inspect_wrapped_property test.

Note a couple of tests still fail against current Python 3.13 due to https://github.com/python/cpython/issues/120526 . I did not want to upstream a workaround for that to toolz, since the correct fix is for the map signature to be corrected in Python: https://github.com/python/cpython/pull/120528 fixes that.

mgorny commented 2 weeks ago

Thanks for doing this, and for investigating the other test failure cause.