Skip to content

Commit 1d36034

Browse files
authored
SetFunctionAttribute (#5968)
* PyRef::into_non_null * SetFunctionAttribute * set_function_attribute * frame helper in PyFuncion * remove closure lock * cleanup unused args
1 parent d4f85cf commit 1d36034

File tree

11 files changed

+440
-264
lines changed

11 files changed

+440
-264
lines changed

Lib/test/test_funcattrs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ def test___name__(self):
176176
self.assertEqual(self.fi.a.__name__, 'a')
177177
self.cannot_set_attr(self.fi.a, "__name__", 'a', AttributeError)
178178

179-
# TODO: RUSTPYTHON
180-
@unittest.expectedFailure
181179
def test___qualname__(self):
182180
# PEP 3155
183181
self.assertEqual(self.b.__qualname__, 'FuncAttrsTest.setUp.<locals>.b')

Lib/test/test_reprlib.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ def test_instance(self):
176176
self.assertTrue(s.endswith(">"))
177177
self.assertIn(s.find("..."), [12, 13])
178178

179-
# TODO: RUSTPYTHON
180-
@unittest.expectedFailure
181179
def test_lambda(self):
182180
r = repr(lambda x: x)
183181
self.assertTrue(r.startswith("<function ReprTests.test_lambda.<locals>.<lambda"), r)

Lib/test/test_typing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5353,8 +5353,6 @@ class A:
53535353
some.__no_type_check__
53545354
self.assertEqual(get_type_hints(some), {'args': int, 'return': int})
53555355

5356-
# TODO: RUSTPYTHON
5357-
@unittest.expectedFailure
53585356
def test_no_type_check_lambda(self):
53595357
@no_type_check
53605358
class A:

0 commit comments

Comments
 (0)