Skip to content

Commit 5826769

Browse files
committed
Reapply "Demonstrate flaw: initial self-less call failure."
This reverts commit 12eec8a.
1 parent 809e35d commit 5826769

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_deprecation.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ def kwarg_decorator(n):
3232

3333

3434
class Class:
35+
base = 2
36+
3537
@deprecated(message="instance")
3638
def instancemethod_decorator(self, n):
37-
return n + 5
39+
return self.base + n + 3
3840

3941

4042
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)