python-makefun icon indicating copy to clipboard operation
python-makefun copied to clipboard

Fix tests with Python 3.13

Open mgorny opened this issue 1 year ago • 0 comments

Python 3.13 dedents all docstrings, while older versions only stripped initial whitespace (from the first line). To achieve consistent matches across all Python versions, use a regular expression to dedent all lines in both cases.

Furthermore, the docstring of functools.partial() has changed. Rather than hardcoding one, just match against functools.partial.__doc__.

mgorny avatar Jun 28 '24 17:06 mgorny