Skip to content

Commit

Permalink
Adapt to functools.partial becoming a method descriptor in Python 3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
musicinmybrain committed Nov 26, 2024
1 parent d9c479a commit bc216da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabel/tests/test_deprecator.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_dep_func(self):
class TestDeprecatorMaker:
"""Test deprecator class creation with custom warnings and errors"""

dep_maker = partial(Deprecator, cmp_func)
dep_maker = staticmethod(partial(Deprecator, cmp_func))

def test_deprecator_maker(self):
dec = self.dep_maker(warn_class=UserWarning)
Expand Down

0 comments on commit bc216da

Please sign in to comment.