We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pytest-dev
Learn more about funding links in repositories.
Report abuse
1 parent b2908fd commit 92ec5c3Copy full SHA for 92ec5c3
testing/python/fixtures.py
@@ -76,6 +76,16 @@ class B(A):
76
assert getfuncargnames(B.static, cls=B) == ("arg1", "arg2")
77
78
79
+@pytest.mark.skipif(
80
+ sys.version_info >= (3, 13),
81
+ reason="""\
82
+In python 3.13, this will raise FutureWarning:
83
+functools.partial will be a method descriptor in future Python versions;
84
+wrap it in staticmethod() if you want to preserve the old behavior
85
+
86
+But the wrapped 'functools.partial' is tested by 'test_getfuncargnames_staticmethod_partial' below.
87
+""",
88
+)
89
def test_getfuncargnames_partial():
90
"""Check getfuncargnames for methods defined with functools.partial (#5701)"""
91
import functools
0 commit comments