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
762 changes: 701 additions & 61 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion Lib/test/test_contextlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,6 @@ def suppress_exc(*exc_details):
else:
self.fail("Expected KeyError, but no exception was raised")

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_exit_exception_with_correct_context(self):
# http://bugs.python.org/issue20317
@contextmanager
Expand Down
7 changes: 0 additions & 7 deletions Lib/test/test_descr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,6 @@ class B(A1, A2):
else:
self.fail("finding the most derived metaclass should have failed")

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_classmethods(self):
# Testing class methods...
class C(object):
Expand Down Expand Up @@ -1615,7 +1614,6 @@ def f(cls, arg):
del cm.x
self.assertNotHasAttr(cm, "x")

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_classmethod_staticmethod_annotations(self):
for deco in (classmethod, staticmethod):
@deco
Expand Down Expand Up @@ -2355,7 +2353,6 @@ class Weak(object):
self.assertEqual(r(), None)
del r

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_properties(self):
# Testing property...
class C(object):
Expand Down Expand Up @@ -3329,7 +3326,6 @@ def __ge__(self, other):
eval("x %s y" % op),
"x=%d, y=%d" % (x, y))

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_descrdoc(self):
# Testing descriptor doc strings...
from _io import FileIO
Expand Down Expand Up @@ -4084,7 +4080,6 @@ def test_ipow_exception_text(self):
y = x ** 2
self.assertIn('unsupported operand type(s) for **', str(cm.exception))

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_pow_wrapper_error_messages(self):
self.assertRaisesRegex(TypeError,
'expected 1 or 2 arguments, got 0',
Expand Down Expand Up @@ -4654,7 +4649,6 @@ def assertNotOrderable(self, a, b):
with self.assertRaises(TypeError):
a >= b

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_method_wrapper(self):
# Testing method-wrapper objects...
# <type 'method-wrapper'> did not support any reflection before 2.5
Expand Down Expand Up @@ -4981,7 +4975,6 @@ class X:
self.assertIn("cannot delete '__doc__' attribute of immutable type 'X'", str(cm.exception))
self.assertEqual(X.__doc__, "banana")

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_qualname(self):
descriptors = [str.lower, complex.real, float.real, int.__add__]
types = ['method', 'member', 'getset', 'wrapper']
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 @@ -1724,7 +1724,6 @@ def test_errno_ENOTDIR(self):
os.listdir(__file__)
self.assertEqual(cm.exception.errno, errno.ENOTDIR, cm.exception)

@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: None != 'Exception ignored while calling dealloca[83 chars]200>'
def test_unraisable(self):
# Issue #22836: PyErr_WriteUnraisable() should give sensible reports
class BrokenDel:
Expand Down
10 changes: 5 additions & 5 deletions Lib/test/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ def b():
>>> [s for s in dir(i) if not s.startswith('_')]
['close', 'gi_code', 'gi_frame', 'gi_running', 'gi_suspended', 'gi_yieldfrom', 'send', 'throw']
>>> from test.support import HAVE_DOCSTRINGS
>>> print(i.__next__.__doc__ if HAVE_DOCSTRINGS else 'Implement next(self).') # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
>>> print(i.__next__.__doc__ if HAVE_DOCSTRINGS else 'Implement next(self).')
Implement next(self).
>>> iter(i) is i
True
Expand Down Expand Up @@ -2526,12 +2526,12 @@ def printsolution(self, x):
...
SyntaxError: assignment to yield expression not possible

>>> def f(): (yield bar) = y # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
>>> def f(): (yield bar) = y
Traceback (most recent call last):
...
SyntaxError: cannot assign to yield expression here. Maybe you meant '==' instead of '='?

>>> def f(): (yield bar) += y # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
>>> def f(): (yield bar) += y
Traceback (most recent call last):
...
SyntaxError: 'yield expression' is an illegal expression for augmented assignment
Expand Down Expand Up @@ -2727,7 +2727,7 @@ def printsolution(self, x):

Our ill-behaved code should be invoked during GC:

>>> with support.catch_unraisable_exception() as cm: # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
>>> with support.catch_unraisable_exception() as cm:
... g = f()
... next(g)
... gen_repr = repr(g)
Expand Down Expand Up @@ -2845,7 +2845,7 @@ def printsolution(self, x):
... raise RuntimeError(message)
... invoke("del failed")
...
>>> with support.catch_unraisable_exception() as cm: # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
>>> with support.catch_unraisable_exception() as cm:
... leaker = Leaker()
... del_repr = repr(type(leaker).__del__)
... del leaker
Expand Down
4 changes: 2 additions & 2 deletions Lib/test/test_genexps.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

Verify that parenthesis are required when used as a keyword argument value

>>> dict(a = i for i in range(10)) # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
>>> dict(a = i for i in range(10))
Traceback (most recent call last):
...
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
Expand Down Expand Up @@ -242,7 +242,7 @@
True

>>> from test.support import HAVE_DOCSTRINGS
>>> print(g.__next__.__doc__ if HAVE_DOCSTRINGS else 'Implement next(self).') # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
>>> print(g.__next__.__doc__ if HAVE_DOCSTRINGS else 'Implement next(self).')
Implement next(self).
>>> import types
>>> isinstance(g, types.GeneratorType)
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 @@ -3954,7 +3954,6 @@ def wrapped_foo_call():
('b', ..., ..., "positional_or_keyword")),
...))

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_signature_on_class(self):
class C:
def __init__(self, a):
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_pydoc/test_pydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,6 @@ def run_pydoc_for_request(request, expected_text_part):
run_pydoc_for_request(pydoc.Helper.help, 'Help on function help in module pydoc:')
# test for pydoc.Helper() instance skipped because it is always meant to be interactive

@unittest.expectedFailure # TODO: RUSTPYTHON
@unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
'trace function introduces __locals__ unexpectedly')
@requires_docstrings
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,6 @@ def test_format_attr(self):
s2 = struct.Struct(s.format.encode())
self.assertEqual(s2.format, s.format)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_struct_cleans_up_at_runtime_shutdown(self):
code = """if 1:
import struct
Expand Down
20 changes: 10 additions & 10 deletions Lib/test/test_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,22 +1264,22 @@
Traceback (most recent call last):
SyntaxError: cannot assign to __debug__

>>> if x = 3: # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
>>> if x = 3:
... pass
Traceback (most recent call last):
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?

>>> while x = 3: # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
>>> while x = 3:
... pass
Traceback (most recent call last):
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?

>>> if x.a = 3: # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
>>> if x.a = 3:
... pass
Traceback (most recent call last):
SyntaxError: cannot assign to attribute here. Maybe you meant '==' instead of '='?

>>> while x.a = 3: # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
>>> while x.a = 3:
... pass
Traceback (most recent call last):
SyntaxError: cannot assign to attribute here. Maybe you meant '==' instead of '='?
Expand Down Expand Up @@ -1885,19 +1885,19 @@
...
SyntaxError: keyword argument repeated: a

>>> {1, 2, 3} = 42 # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
>>> {1, 2, 3} = 42
Traceback (most recent call last):
SyntaxError: cannot assign to set display here. Maybe you meant '==' instead of '='?

>>> {1: 2, 3: 4} = 42 # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
>>> {1: 2, 3: 4} = 42
Traceback (most recent call last):
SyntaxError: cannot assign to dict literal here. Maybe you meant '==' instead of '='?

>>> f'{x}' = 42 # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
>>> f'{x}' = 42
Traceback (most recent call last):
SyntaxError: cannot assign to f-string expression here. Maybe you meant '==' instead of '='?

>>> f'{x}-{y}' = 42 # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
>>> f'{x}-{y}' = 42
Traceback (most recent call last):
SyntaxError: cannot assign to f-string expression here. Maybe you meant '==' instead of '='?

Expand Down Expand Up @@ -1973,11 +1973,11 @@
Traceback (most recent call last):
SyntaxError: 'b' and 'f' prefixes are incompatible

>>> t'{x}' = 42 # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
>>> t'{x}' = 42
Traceback (most recent call last):
SyntaxError: cannot assign to t-string expression here. Maybe you meant '==' instead of '='?

>>> t'{x}-{y}' = 42 # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
>>> t'{x}-{y}' = 42
Traceback (most recent call last):
SyntaxError: cannot assign to t-string expression here. Maybe you meant '==' instead of '='?

Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,6 @@ def test_slot_wrapper_types(self):
self.assertIsInstance(object.__lt__, types.WrapperDescriptorType)
self.assertIsInstance(int.__lt__, types.WrapperDescriptorType)

@unittest.expectedFailure # TODO: RUSTPYTHON; ValueError: no signature found for builtin <method-wrapper '__get__' of wrapper_descriptor object
@unittest.skipIf(MISSING_C_DOCSTRINGS,
"Signature information for builtins requires docstrings")
def test_dunder_get_signature(self):
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_yield_from.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,6 @@ def g():
"finishing g",
])

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_broken_getattr_handling(self):
"""
Test subiterator with a broken getattr implementation
Expand Down
Loading
Loading