summaryrefslogtreecommitdiff
path: root/dev-python/makefun/files/makefun-1.15.3-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/makefun/files/makefun-1.15.3-test.patch')
-rw-r--r--dev-python/makefun/files/makefun-1.15.3-test.patch80
1 files changed, 0 insertions, 80 deletions
diff --git a/dev-python/makefun/files/makefun-1.15.3-test.patch b/dev-python/makefun/files/makefun-1.15.3-test.patch
deleted file mode 100644
index bed2b01c01d4..000000000000
--- a/dev-python/makefun/files/makefun-1.15.3-test.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-diff --git a/tests/test_partial_and_macros.py b/tests/test_partial_and_macros.py
-index 6fd4503..3ce0a33 100644
---- a/tests/test_partial_and_macros.py
-+++ b/tests/test_partial_and_macros.py
-@@ -1,5 +1,6 @@
- import functools
- import pytest
-+import re
- import sys
-
- import makefun
-@@ -11,6 +12,11 @@ except ImportError:
-
- PY2 = sys.version_info < (3, )
-
-+# Python 3.13 dedents docstrings, earlier versions just strip initial
-+# whitespace. Use a regexp to get a consistently dedented docstring
-+# for comparison across Python versions.
-+DOCSTRING_NORMALIZE_RE = re.compile(r"^ +", re.MULTILINE)
-+
-
- def test_doc():
- def foo(x, y):
-@@ -41,15 +47,15 @@ def test_doc():
-
- sig_actual_call = ref_sig_str.replace("*, ", "")
-
-- assert bar.__doc__ \
-+ assert DOCSTRING_NORMALIZE_RE.sub("", bar.__doc__) \
- == """<This function is equivalent to 'foo%s', see original 'foo' doc below.>
-
-- a `foo` function
-+a `foo` function
-
-- :param x:
-- :param y:
-- :return:
-- """ % sig_actual_call
-+:param x:
-+:param y:
-+:return:
-+""" % sig_actual_call
-
-
- def test_partial():
-@@ -78,16 +84,16 @@ def test_partial():
-
- sig_actual_call = "(x, y='hello', a)" # if PY2 else "(x, *, y='hello', a)"
-
-- assert foo.__doc__.replace("=KW_ONLY_ARG!", "") \
-+ assert DOCSTRING_NORMALIZE_RE.sub("", foo.__doc__.replace("=KW_ONLY_ARG!", "")) \
- == """<This function is equivalent to 'foo%s', see original 'foo' doc below.>
-
-- a `foo` function
-+a `foo` function
-
-- :param x:
-- :param y:
-- :param a:
-- :return:
-- """ % sig_actual_call
-+:param x:
-+:param y:
-+:param a:
-+:return:
-+""" % sig_actual_call
-
-
- def test_issue_57():
-@@ -127,9 +133,7 @@ def test_create_with_partial():
- assert m() == -1
- assert m.i == 1
- # the doc remains untouched in create_function as opposed to wraps, this is normal
-- assert m.__doc__ == """partial(func, *args, **keywords) - new function with partial application
-- of the given arguments and keywords.
--"""
-+ assert m.__doc__ == functools.partial.__doc__
-
-
- def test_args_order_and_kind():