Skip to content

Commit 0d8a0a5

Browse files
committed
Fix PyCode constructor
1 parent 3b48dcc commit 0d8a0a5

File tree

3 files changed

+271
-78
lines changed

3 files changed

+271
-78
lines changed

Lib/test/test_code.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ class List(list):
222222
obj = List([1, 2, 3])
223223
self.assertEqual(obj[0], "Foreign getitem: 1")
224224

225-
# TODO: RUSTPYTHON
226-
@unittest.expectedFailure
227225
def test_constructor(self):
228226
def func(): pass
229227
co = func.__code__
@@ -255,8 +253,6 @@ def test_qualname(self):
255253
CodeTest.test_qualname.__qualname__
256254
)
257255

258-
# TODO: RUSTPYTHON
259-
@unittest.expectedFailure
260256
def test_replace(self):
261257
def func():
262258
x = 1
@@ -297,8 +293,6 @@ def func2():
297293
self.assertEqual(new_code.co_varnames, code2.co_varnames)
298294
self.assertEqual(new_code.co_nlocals, code2.co_nlocals)
299295

300-
# TODO: RUSTPYTHON
301-
@unittest.expectedFailure
302296
def test_nlocals_mismatch(self):
303297
def func():
304298
x = 1

0 commit comments

Comments
 (0)