python-makefun
python-makefun copied to clipboard
Fix tests with Python 3.13
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__.