forked from Rust-related/RustPython
Update test_decorators from Cpython v3.11.2
This commit is contained in:
12
Lib/test/test_decorators.py
vendored
12
Lib/test/test_decorators.py
vendored
@@ -330,6 +330,18 @@ class TestDecorators(unittest.TestCase):
|
||||
self.assertEqual(Class().inner(), 'spam')
|
||||
self.assertEqual(Class().outer(), 'eggs')
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_bound_function_inside_classmethod(self):
|
||||
class A:
|
||||
def foo(self, cls):
|
||||
return 'spam'
|
||||
|
||||
class B:
|
||||
bar = classmethod(A().foo)
|
||||
|
||||
self.assertEqual(B.bar(), 'spam')
|
||||
|
||||
def test_wrapped_classmethod_inside_classmethod(self):
|
||||
class MyClassMethod1:
|
||||
def __init__(self, func):
|
||||
|
||||
Reference in New Issue
Block a user