Skip to content

Commit 0e0cd5d

Browse files
committed
Mark failing tests
1 parent 8ffae87 commit 0e0cd5d

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

Lib/test/test_decorators.py

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

97+
# TODO: RUSTPYTHON
98+
@unittest.expectedFailure
9799
def test_staticmethod(self):
98100
wrapper = self.check_wrapper_attrs(staticmethod, '<staticmethod({!r})>')
99101

100102
# bpo-43682: Static methods are callable since Python 3.10
101103
self.assertEqual(wrapper(1), 1)
102104

105+
# TODO: RUSTPYTHON
106+
@unittest.expectedFailure
103107
def test_classmethod(self):
104108
wrapper = self.check_wrapper_attrs(classmethod, '<classmethod({!r})>')
105109

@@ -199,12 +203,13 @@ def unimp(func):
199203
code = compile(codestr, "test", "exec")
200204
self.assertRaises(exc, eval, code, context)
201205

202-
def test_expressions(self):
203-
for expr in (
204-
"(x,)", "(x, y)", "x := y", "(x := y)", "x @y", "(x @ y)", "x[0]",
205-
"w[x].y.z", "w + x - (y + z)", "x(y)()(z)", "[w, x, y][z]", "x.y",
206-
):
207-
compile(f"@{expr}\ndef f(): pass", "test", "exec")
206+
# TODO: RUSTPYTHON; := operator is invalid syntax
207+
# def test_expressions(self):
208+
# for expr in (
209+
# "(x,)", "(x, y)", "x := y", "(x := y)", "x @y", "(x @ y)", "x[0]",
210+
# "w[x].y.z", "w + x - (y + z)", "x(y)()(z)", "[w, x, y][z]", "x.y",
211+
# ):
212+
# compile(f"@{expr}\ndef f(): pass", "test", "exec")
208213

209214
def test_double(self):
210215
class C(object):
@@ -292,6 +297,8 @@ def bar(): return 42
292297
self.assertEqual(bar(), 42)
293298
self.assertEqual(actions, expected_actions)
294299

300+
# TODO: RUSTPYTHON
301+
@unittest.expectedFailure
295302
def test_wrapped_descriptor_inside_classmethod(self):
296303
class BoundWrapper:
297304
def __init__(self, wrapped):
@@ -330,6 +337,8 @@ def outer(cls):
330337
self.assertEqual(Class().inner(), 'spam')
331338
self.assertEqual(Class().outer(), 'eggs')
332339

340+
# TODO: RUSTPYTHON
341+
@unittest.expectedFailure
333342
def test_wrapped_classmethod_inside_classmethod(self):
334343
class MyClassMethod1:
335344
def __init__(self, func):

0 commit comments

Comments
 (0)