File tree 1 file changed +4
-1
lines changed 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Python test set -- part 2, opcodes
2
2
3
3
import unittest
4
- from test import ann_module , support
4
+ from test import support #,ann_module
5
5
6
6
class OpcodeTest (unittest .TestCase ):
7
7
@@ -21,6 +21,7 @@ def test_try_inside_for_loop(self):
21
21
if n != 90 :
22
22
self .fail ('try inside for' )
23
23
24
+ @unittest .skip ("TODO: RUSTPYTHON" )
24
25
def test_setup_annotations_line (self ):
25
26
# check that SETUP_ANNOTATIONS does not create spurious line numbers
26
27
try :
@@ -36,11 +37,13 @@ class C: pass
36
37
with self .assertRaises (AttributeError ):
37
38
C .__annotations__
38
39
40
+ @unittest .skip ("TODO: RUSTPYTHON" )
39
41
def test_use_existing_annotations (self ):
40
42
ns = {'__annotations__' : {1 : 2 }}
41
43
exec ('x: int' , ns )
42
44
self .assertEqual (ns ['__annotations__' ], {'x' : int , 1 : 2 })
43
45
46
+ @unittest .skip ("TODO: RUSTPYTHON" )
44
47
def test_do_not_recreate_annotations (self ):
45
48
# Don't rely on the existence of the '__annotations__' global.
46
49
with support .swap_item (globals (), '__annotations__' , {}):
You can’t perform that action at this time.
0 commit comments