From eb6b1fa34fdef63b7dd807ba9409dc684f124810 Mon Sep 17 00:00:00 2001 From: Aviv Palivoda Date: Mon, 10 Feb 2020 18:45:32 +0200 Subject: [PATCH] Mark unsupported tests --- Lib/test/test_opcodes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_opcodes.py b/Lib/test/test_opcodes.py index 527aca664..d37dc6e88 100644 --- a/Lib/test/test_opcodes.py +++ b/Lib/test/test_opcodes.py @@ -1,7 +1,7 @@ # Python test set -- part 2, opcodes import unittest -from test import ann_module, support +from test import support #,ann_module class OpcodeTest(unittest.TestCase): @@ -21,6 +21,7 @@ class OpcodeTest(unittest.TestCase): if n != 90: self.fail('try inside for') + @unittest.skip("TODO: RUSTPYTHON") def test_setup_annotations_line(self): # check that SETUP_ANNOTATIONS does not create spurious line numbers try: @@ -36,11 +37,13 @@ class OpcodeTest(unittest.TestCase): with self.assertRaises(AttributeError): C.__annotations__ + @unittest.skip("TODO: RUSTPYTHON") def test_use_existing_annotations(self): ns = {'__annotations__': {1: 2}} exec('x: int', ns) self.assertEqual(ns['__annotations__'], {'x': int, 1: 2}) + @unittest.skip("TODO: RUSTPYTHON") def test_do_not_recreate_annotations(self): # Don't rely on the existence of the '__annotations__' global. with support.swap_item(globals(), '__annotations__', {}):