Skip to content

Commit e121f8e

Browse files
authored
Merge pull request #4806 from Masorubka1/test_decorators
Update test_decorators from Cpython v3.11.2
2 parents 93613ec + 0609686 commit e121f8e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Lib/test/test_decorators.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,18 @@ def outer(cls):
330330
self.assertEqual(Class().inner(), 'spam')
331331
self.assertEqual(Class().outer(), 'eggs')
332332

333+
# TODO: RUSTPYTHON
334+
@unittest.expectedFailure
335+
def test_bound_function_inside_classmethod(self):
336+
class A:
337+
def foo(self, cls):
338+
return 'spam'
339+
340+
class B:
341+
bar = classmethod(A().foo)
342+
343+
self.assertEqual(B.bar(), 'spam')
344+
333345
def test_wrapped_classmethod_inside_classmethod(self):
334346
class MyClassMethod1:
335347
def __init__(self, func):

0 commit comments

Comments
 (0)