@@ -94,12 +94,16 @@ def func(x):
94
94
self .assertEqual (repr (wrapper ), format_str .format (func ))
95
95
return wrapper
96
96
97
+ # TODO: RUSTPYTHON
98
+ @unittest .expectedFailure
97
99
def test_staticmethod (self ):
98
100
wrapper = self .check_wrapper_attrs (staticmethod , '<staticmethod({!r})>' )
99
101
100
102
# bpo-43682: Static methods are callable since Python 3.10
101
103
self .assertEqual (wrapper (1 ), 1 )
102
104
105
+ # TODO: RUSTPYTHON
106
+ @unittest .expectedFailure
103
107
def test_classmethod (self ):
104
108
wrapper = self .check_wrapper_attrs (classmethod , '<classmethod({!r})>' )
105
109
@@ -199,12 +203,13 @@ def unimp(func):
199
203
code = compile (codestr , "test" , "exec" )
200
204
self .assertRaises (exc , eval , code , context )
201
205
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 } \n def 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")
208
213
209
214
def test_double (self ):
210
215
class C (object ):
@@ -292,6 +297,8 @@ def bar(): return 42
292
297
self .assertEqual (bar (), 42 )
293
298
self .assertEqual (actions , expected_actions )
294
299
300
+ # TODO: RUSTPYTHON
301
+ @unittest .expectedFailure
295
302
def test_wrapped_descriptor_inside_classmethod (self ):
296
303
class BoundWrapper :
297
304
def __init__ (self , wrapped ):
@@ -330,6 +337,8 @@ def outer(cls):
330
337
self .assertEqual (Class ().inner (), 'spam' )
331
338
self .assertEqual (Class ().outer (), 'eggs' )
332
339
340
+ # TODO: RUSTPYTHON
341
+ @unittest .expectedFailure
333
342
def test_wrapped_classmethod_inside_classmethod (self ):
334
343
class MyClassMethod1 :
335
344
def __init__ (self , func ):
0 commit comments