Skip to content

Commit e0ddd98

Browse files
committed
mark successful/failing tests again
1 parent 4d68885 commit e0ddd98

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

Lib/test/test_traceback.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def syntax_error_bad_indentation2(self):
5454
def tokenizer_error_with_caret_range(self):
5555
compile("blech ( ", "?", "exec")
5656

57+
# TODO: RUSTPYTHON
58+
@unittest.expectedFailure
5759
def test_caret(self):
5860
err = self.get_exception_format(self.syntax_error_with_caret,
5961
SyntaxError)
@@ -761,8 +763,6 @@ def e():
761763
msg = self.get_report(e).splitlines()
762764
self.assertEqual(msg[-2], ' ^')
763765

764-
# TODO: RUSTPYTHON
765-
@unittest.expectedFailure
766766
def test_syntax_error_no_lineno(self):
767767
# See #34463.
768768

@@ -810,6 +810,8 @@ def __str__(self):
810810
exp = f'<unknown>.{X.__qualname__}: I am X\n'
811811
self.assertEqual(exp, err)
812812

813+
# TODO: RUSTPYTHON
814+
@unittest.expectedFailure
813815
def test_syntax_error_various_offsets(self):
814816
for offset in range(-5, 10):
815817
for add in [0, 2]:
@@ -829,6 +831,8 @@ def test_syntax_error_various_offsets(self):
829831
exp = "\n".join(expected)
830832
self.assertEqual(exp, err)
831833

834+
# TODO: RUSTPYTHON
835+
@unittest.expectedFailure
832836
def test_format_exception_only_qualname(self):
833837
class A:
834838
class B:
@@ -1026,8 +1030,6 @@ def inner():
10261030
# Local variable dict should now be empty.
10271031
self.assertEqual(len(inner_frame.f_locals), 0)
10281032

1029-
# TODO: RUSTPYTHON
1030-
@unittest.expectedFailure
10311033
def test_extract_stack(self):
10321034
def extract():
10331035
return traceback.extract_stack()
@@ -1080,8 +1082,6 @@ def test_explicit_line(self):
10801082
f = traceback.FrameSummary("f", 1, "dummy", line="line")
10811083
self.assertEqual("line", f.line)
10821084

1083-
# TODO: RUSTPYTHON
1084-
@unittest.expectedFailure
10851085
def test_len(self):
10861086
f = traceback.FrameSummary("f", 1, "dummy", line="line")
10871087
self.assertEqual(len(f), 4)
@@ -1157,17 +1157,13 @@ def test_format_smoke(self):
11571157
[' File "foo.py", line 1, in fred\n line\n'],
11581158
s.format())
11591159

1160-
# TODO: RUSTPYTHON
1161-
@unittest.expectedFailure
11621160
def test_locals(self):
11631161
linecache.updatecache('/foo.py', globals())
11641162
c = test_code('/foo.py', 'method')
11651163
f = test_frame(c, globals(), {'something': 1})
11661164
s = traceback.StackSummary.extract(iter([(f, 6)]), capture_locals=True)
11671165
self.assertEqual(s[0].locals, {'something': '1'})
11681166

1169-
# TODO: RUSTPYTHON
1170-
@unittest.expectedFailure
11711167
def test_no_locals(self):
11721168
linecache.updatecache('/foo.py', globals())
11731169
c = test_code('/foo.py', 'method')
@@ -1274,6 +1270,8 @@ def test_context(self):
12741270
self.assertEqual(exc_info[0], exc.exc_type)
12751271
self.assertEqual(str(exc_info[1]), str(exc))
12761272

1273+
# TODO: RUSTPYTHON
1274+
@unittest.expectedFailure
12771275
def test_long_context_chain(self):
12781276
def f():
12791277
try:
@@ -1339,8 +1337,6 @@ def test_compact_no_cause(self):
13391337
self.assertEqual(exc_info[0], exc.exc_type)
13401338
self.assertEqual(str(exc_info[1]), str(exc))
13411339

1342-
# TODO: RUSTPYTHON
1343-
@unittest.expectedFailure
13441340
def test_no_refs_to_exception_and_traceback_objects(self):
13451341
try:
13461342
1/0
@@ -1404,8 +1400,6 @@ def raise_with_locals():
14041400
exc7 = traceback.TracebackException(*exc_info, limit=-2, capture_locals=True)
14051401
self.assertNotEqual(exc6, exc7)
14061402

1407-
# TODO: RUSTPYTHON
1408-
@unittest.expectedFailure
14091403
def test_comparison_equivalent_exceptions_are_equal(self):
14101404
excs = []
14111405
for _ in range(2):
@@ -1463,8 +1457,6 @@ def test_lookup_lines(self):
14631457
linecache.updatecache('/foo.py', globals())
14641458
self.assertEqual(exc.stack[0].line, "import sys")
14651459

1466-
# TODO: RUSTPYTHON
1467-
@unittest.expectedFailure
14681460
def test_locals(self):
14691461
linecache.updatecache('/foo.py', globals())
14701462
e = Exception("uh oh")
@@ -1476,8 +1468,6 @@ def test_locals(self):
14761468
self.assertEqual(
14771469
exc.stack[0].locals, {'something': '1', 'other': "'string'"})
14781470

1479-
# TODO: RUSTPYTHON
1480-
@unittest.expectedFailure
14811471
def test_no_locals(self):
14821472
linecache.updatecache('/foo.py', globals())
14831473
e = Exception("uh oh")

0 commit comments

Comments
 (0)