@@ -1040,8 +1040,6 @@ def extract():
1040
1040
1041
1041
class TestFrame (unittest .TestCase ):
1042
1042
1043
- # TODO: RUSTPYTHON
1044
- @unittest .expectedFailure
1045
1043
def test_basics (self ):
1046
1044
linecache .clearcache ()
1047
1045
linecache .lazycache ("f" , globals ())
@@ -1059,8 +1057,6 @@ def test_basics(self):
1059
1057
self .assertNotEqual (f , object ())
1060
1058
self .assertEqual (f , ALWAYS_EQ )
1061
1059
1062
- # TODO: RUSTPYTHON
1063
- @unittest .expectedFailure
1064
1060
def test_lazy_lines (self ):
1065
1061
linecache .clearcache ()
1066
1062
f = traceback .FrameSummary ("f" , 1 , "dummy" , lookup_line = False )
@@ -1109,8 +1105,6 @@ def test_extract_stack_limit(self):
1109
1105
s = traceback .StackSummary .extract (traceback .walk_stack (None ), limit = 5 )
1110
1106
self .assertEqual (len (s ), 5 )
1111
1107
1112
- # TODO: RUSTPYTHON
1113
- @unittest .expectedFailure
1114
1108
def test_extract_stack_lookup_lines (self ):
1115
1109
linecache .clearcache ()
1116
1110
linecache .updatecache ('/foo.py' , globals ())
@@ -1120,8 +1114,6 @@ def test_extract_stack_lookup_lines(self):
1120
1114
linecache .clearcache ()
1121
1115
self .assertEqual (s [0 ].line , "import sys" )
1122
1116
1123
- # TODO: RUSTPYTHON
1124
- @unittest .expectedFailure
1125
1117
def test_extract_stackup_deferred_lookup_lines (self ):
1126
1118
linecache .clearcache ()
1127
1119
c = test_code ('/foo.py' , 'method' )
@@ -1153,17 +1145,13 @@ def test_format_smoke(self):
1153
1145
[' File "foo.py", line 1, in fred\n line\n ' ],
1154
1146
s .format ())
1155
1147
1156
- # TODO: RUSTPYTHON
1157
- @unittest .expectedFailure
1158
1148
def test_locals (self ):
1159
1149
linecache .updatecache ('/foo.py' , globals ())
1160
1150
c = test_code ('/foo.py' , 'method' )
1161
1151
f = test_frame (c , globals (), {'something' : 1 })
1162
1152
s = traceback .StackSummary .extract (iter ([(f , 6 )]), capture_locals = True )
1163
1153
self .assertEqual (s [0 ].locals , {'something' : '1' })
1164
1154
1165
- # TODO: RUSTPYTHON
1166
- @unittest .expectedFailure
1167
1155
def test_no_locals (self ):
1168
1156
linecache .updatecache ('/foo.py' , globals ())
1169
1157
c = test_code ('/foo.py' , 'method' )
@@ -1444,8 +1432,6 @@ def recurse(n):
1444
1432
traceback .walk_tb (exc_info [2 ]), limit = 5 )
1445
1433
self .assertEqual (expected_stack , exc .stack )
1446
1434
1447
- # TODO: RUSTPYTHON
1448
- @unittest .expectedFailure
1449
1435
def test_lookup_lines (self ):
1450
1436
linecache .clearcache ()
1451
1437
e = Exception ("uh oh" )
@@ -1457,8 +1443,6 @@ def test_lookup_lines(self):
1457
1443
linecache .updatecache ('/foo.py' , globals ())
1458
1444
self .assertEqual (exc .stack [0 ].line , "import sys" )
1459
1445
1460
- # TODO: RUSTPYTHON
1461
- @unittest .expectedFailure
1462
1446
def test_locals (self ):
1463
1447
linecache .updatecache ('/foo.py' , globals ())
1464
1448
e = Exception ("uh oh" )
@@ -1470,8 +1454,6 @@ def test_locals(self):
1470
1454
self .assertEqual (
1471
1455
exc .stack [0 ].locals , {'something' : '1' , 'other' : "'string'" })
1472
1456
1473
- # TODO: RUSTPYTHON
1474
- @unittest .expectedFailure
1475
1457
def test_no_locals (self ):
1476
1458
linecache .updatecache ('/foo.py' , globals ())
1477
1459
e = Exception ("uh oh" )
0 commit comments