Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cspell.dict/cpython.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ argtypes
asdl
asname
atopen
atext
attro
augassign
badcert
Expand Down Expand Up @@ -104,6 +105,7 @@ inlinedepth
inplace
inpos
isbytecode
ishidden
ismine
ISPOINTER
isoctal
Expand All @@ -113,6 +115,7 @@ keeped
kwnames
kwonlyarg
kwonlyargs
kwonlydefaults
lasti
libffi
linearise
Expand Down Expand Up @@ -164,6 +167,7 @@ patma
peepholer
phcount
platstdlib
ploc
posonlyarg
posonlyargs
prec
Expand Down Expand Up @@ -209,6 +213,7 @@ staticbase
stginfo
storefast
stringlib
stringized
structseq
subkwargs
subparams
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,6 @@ def get_code_lines(self, code):
last_line = line
return res

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_lineno_attribute(self):
def load_attr():
return (
Expand Down Expand Up @@ -1294,7 +1293,6 @@ def aug_store_attr():
code_lines = self.get_code_lines(func.__code__)
self.assertEqual(lines, code_lines)

@unittest.expectedFailure # TODO: RUSTPYTHON; + [0]
def test_line_number_genexp(self):

def return_genexp():
Expand Down
6 changes: 0 additions & 6 deletions Lib/test/test_dis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,6 @@ def test_disassemble_fstring(self):
def test_disassemble_with(self):
self.do_disassembly_test(_with, dis_with)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_disassemble_asyncwith(self):
self.do_disassembly_test(_asyncwith, dis_asyncwith)

Expand Down Expand Up @@ -1991,26 +1990,22 @@ def test_first_line_set_to_None(self):
actual = dis.get_instructions(simple, first_line=None)
self.assertInstructionsEqual(list(actual), expected_opinfo_simple)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_outer(self):
actual = dis.get_instructions(outer, first_line=expected_outer_line)
self.assertInstructionsEqual(list(actual), expected_opinfo_outer)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_nested(self):
with captured_stdout():
f = outer()
actual = dis.get_instructions(f, first_line=expected_f_line)
self.assertInstructionsEqual(list(actual), expected_opinfo_f)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_doubly_nested(self):
with captured_stdout():
inner = outer()()
actual = dis.get_instructions(inner, first_line=expected_inner_line)
self.assertInstructionsEqual(list(actual), expected_opinfo_inner)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_jumpy(self):
actual = dis.get_instructions(jumpy, first_line=expected_jumpy_line)
self.assertInstructionsEqual(list(actual), expected_opinfo_jumpy)
Expand Down Expand Up @@ -2314,7 +2309,6 @@ def test_iteration(self):
via_generator = list(dis.get_instructions(obj))
self.assertInstructionsEqual(via_object, via_generator)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_explicit_first_line(self):
actual = dis.Bytecode(outer, first_line=expected_outer_line)
self.assertInstructionsEqual(list(actual), expected_opinfo_outer)
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2245,7 +2245,6 @@ def test_assertion_error_location(self):
result = run_script(source)
self.assertEqual(result[-3:], expected)

@unittest.expectedFailure # TODO: RUSTPYTHON
@force_not_colorized
def test_multiline_not_highlighted(self):
cases = [
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ class FakePackage:

self.assertFalse(inspect.ispackage(FakePackage()))

@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: False is not true
def test_iscoroutine(self):
async_gen_coro = async_generator_function_example(1)
gen_coro = gen_coroutine_function_example(1)
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_py_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ def test_exceptions_propagate(self):
finally:
os.chmod(self.directory, mode.st_mode)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_bad_coding(self):
bad_coding = os.path.join(os.path.dirname(__file__),
'tokenizedata',
Expand Down Expand Up @@ -198,7 +197,6 @@ def test_invalidation_mode(self):
fp.read(), 'test', {})
self.assertEqual(flags, 0b1)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_quiet(self):
bad_coding = os.path.join(os.path.dirname(__file__),
'tokenizedata',
Expand Down
4 changes: 0 additions & 4 deletions Lib/test/test_strtod.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ def test_halfway_cases(self):
s = '{}e{}'.format(digits, exponent)
self.check_strtod(s)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_boundaries(self):
# boundaries expressed as triples (n, e, u), where
# n*10**e is an approximation to the boundary value and
Expand All @@ -194,7 +193,6 @@ def test_boundaries(self):
u *= 10
e -= 1

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_underflow_boundary(self):
# test values close to 2**-1075, the underflow boundary; similar
# to boundary_tests, except that the random error doesn't scale
Expand All @@ -206,7 +204,6 @@ def test_underflow_boundary(self):
s = '{}e{}'.format(digits, exponent)
self.check_strtod(s)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_bigcomp(self):
for ndigs in 5, 10, 14, 15, 16, 17, 18, 19, 20, 40, 41, 50:
dig10 = 10**ndigs
Expand Down Expand Up @@ -284,7 +281,6 @@ def negative_exp(n):
self.assertEqual(float(negative_exp(20000)), 1.0)
self.assertEqual(float(negative_exp(30000)), 1.0)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_particular(self):
# inputs that produced crashes or incorrectly rounded results with
# previous versions of dtoa.c, for various reasons
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_sys_settrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,8 +1488,6 @@ def test_jump_in_nested_finally_3(output):
output.append(11)
output.append(12)

# TODO: RUSTPYTHON
@unittest.expectedFailure
@jump_test(5, 11, [2, 4], (ValueError, 'after'))
def test_no_jump_over_return_try_finally_in_finally_block(output):
try:
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_unittest/test_async_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ async def on_cleanup2(self):
test.doCleanups()
self.assertEqual(events, ['asyncSetUp', 'test', 'asyncTearDown', 'cleanup2', 'cleanup1'])

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_deprecation_of_return_val_from_test(self):
# Issue 41322 - deprecate return of value that is not None from a test
class Nothing:
Expand Down
Loading
Loading