◐ Shell
clean mode source ↗

Update test_decorators from Cpython v3.11.2 by Masorubka1 · Pull Request #4806 · RustPython/RustPython

Expand Up @@ -330,6 +330,18 @@ def outer(cls): 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): Expand Down