From 572053df82a6ad1b09e00be3d4cb130eb8eba762 Mon Sep 17 00:00:00 2001 From: Blues-star <469830014@qq.com> Date: Mon, 19 Feb 2024 20:30:06 +0800 Subject: [PATCH] est_co_lnotab_is_deprecated, 'test_invalid_bytecode' and est_code_hash_uses_bytecode test exceptions, add TODO --- Lib/test/test_code.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py index e64b2d2f1..1aceff4ef 100644 --- a/Lib/test/test_code.py +++ b/Lib/test/test_code.py @@ -357,6 +357,8 @@ class CodeTest(unittest.TestCase): new_code = code = func.__code__.replace(co_linetable=b'') self.assertEqual(list(new_code.co_lines()), []) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_co_lnotab_is_deprecated(self): # TODO: remove in 3.14 def func(): pass @@ -364,6 +366,8 @@ class CodeTest(unittest.TestCase): with self.assertWarns(DeprecationWarning): func.__code__.co_lnotab + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_invalid_bytecode(self): def foo(): pass @@ -520,6 +524,8 @@ class CodeTest(unittest.TestCase): self.assertNotEqual(c, swapped) self.assertNotEqual(hash(c), hash(swapped)) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_code_hash_uses_bytecode(self): c = (lambda x, y: x + y).__code__ d = (lambda x, y: x * y).__code__