Skip to content

Commit 92ec5c3

Browse files
committedJul 4, 2024·
[python 3.13] Mark functool.partial test to be skipped
Closes #12552
1 parent b2908fd commit 92ec5c3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎testing/python/fixtures.py

+10
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ class B(A):
7676
assert getfuncargnames(B.static, cls=B) == ("arg1", "arg2")
7777

7878

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+
)
7989
def test_getfuncargnames_partial():
8090
"""Check getfuncargnames for methods defined with functools.partial (#5701)"""
8191
import functools

0 commit comments

Comments
 (0)
Please sign in to comment.