mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Mark unsupported tests
This commit is contained in:
1 parent
3f44dd4340
commit
eb6b1fa34f
1 file changed
+4
-1
@@ -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__', {}):
|
||||
|
||||
Reference in new issue
Block a user