Skip to content

Commit b6df0ce

Browse files
committed
Enable decorator tests
1 parent d6e71ad commit b6df0ce

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Lib/test/test_decorators.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,12 @@ def func(x):
9494
self.assertEqual(repr(wrapper), format_str.format(func))
9595
return wrapper
9696

97-
# TODO: RUSTPYTHON
98-
@unittest.expectedFailure
9997
def test_staticmethod(self):
10098
wrapper = self.check_wrapper_attrs(staticmethod, '<staticmethod({!r})>')
10199

102100
# bpo-43682: Static methods are callable since Python 3.10
103101
self.assertEqual(wrapper(1), 1)
104102

105-
# TODO: RUSTPYTHON
106-
@unittest.expectedFailure
107103
def test_classmethod(self):
108104
wrapper = self.check_wrapper_attrs(classmethod, '<classmethod({!r})>')
109105

@@ -297,8 +293,6 @@ def bar(): return 42
297293
self.assertEqual(bar(), 42)
298294
self.assertEqual(actions, expected_actions)
299295

300-
# TODO: RUSTPYTHON
301-
@unittest.expectedFailure
302296
def test_wrapped_descriptor_inside_classmethod(self):
303297
class BoundWrapper:
304298
def __init__(self, wrapped):
@@ -337,8 +331,6 @@ def outer(cls):
337331
self.assertEqual(Class().inner(), 'spam')
338332
self.assertEqual(Class().outer(), 'eggs')
339333

340-
# TODO: RUSTPYTHON
341-
@unittest.expectedFailure
342334
def test_wrapped_classmethod_inside_classmethod(self):
343335
class MyClassMethod1:
344336
def __init__(self, func):

0 commit comments

Comments
 (0)