Skip to content

Commit d46d906

Browse files
Adapt to functools.partial becoming a method descriptor in Python 3.14
https://docs.python.org/dev/whatsnew/3.14.html#changes-in-the-python-api
1 parent d9c479a commit d46d906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/tests/test_deprecator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def test_dep_func(self):
161161
class TestDeprecatorMaker:
162162
"""Test deprecator class creation with custom warnings and errors"""
163163

164-
dep_maker = partial(Deprecator, cmp_func)
164+
dep_maker = staticmethod(partial(Deprecator, cmp_func))
165165

166166
def test_deprecator_maker(self):
167167
dec = self.dep_maker(warn_class=UserWarning)

0 commit comments

Comments
 (0)