Skip to content

Commit 572053d

Browse files
committed
est_co_lnotab_is_deprecated, 'test_invalid_bytecode' and est_code_hash_uses_bytecode test exceptions, add TODO
1 parent def5661 commit 572053d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_code.py

+6
Original file line numberDiff line numberDiff line change
@@ -357,13 +357,17 @@ def func():
357357
new_code = code = func.__code__.replace(co_linetable=b'')
358358
self.assertEqual(list(new_code.co_lines()), [])
359359

360+
# TODO: RUSTPYTHON
361+
@unittest.expectedFailure
360362
def test_co_lnotab_is_deprecated(self): # TODO: remove in 3.14
361363
def func():
362364
pass
363365

364366
with self.assertWarns(DeprecationWarning):
365367
func.__code__.co_lnotab
366368

369+
# TODO: RUSTPYTHON
370+
@unittest.expectedFailure
367371
def test_invalid_bytecode(self):
368372
def foo():
369373
pass
@@ -520,6 +524,8 @@ def test_code_hash_uses_order(self):
520524
self.assertNotEqual(c, swapped)
521525
self.assertNotEqual(hash(c), hash(swapped))
522526

527+
# TODO: RUSTPYTHON
528+
@unittest.expectedFailure
523529
def test_code_hash_uses_bytecode(self):
524530
c = (lambda x, y: x + y).__code__
525531
d = (lambda x, y: x * y).__code__

0 commit comments

Comments
 (0)