Skip to content
Closed
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
261 changes: 187 additions & 74 deletions Cargo.lock

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,11 @@ rustpython-sre_engine = { path = "vm/sre_engine", version = "0.4.0" }
rustpython-wtf8 = { path = "wtf8", version = "0.4.0" }
rustpython-doc = { git = "https://github.com/RustPython/__doc__", tag = "0.3.0", version = "0.3.0" }

ruff_python_parser = { git = "https://github.com/astral-sh/ruff.git", tag = "0.11.0" }
ruff_python_ast = { git = "https://github.com/astral-sh/ruff.git", tag = "0.11.0" }
ruff_text_size = { git = "https://github.com/astral-sh/ruff.git", tag = "0.11.0" }
ruff_source_file = { git = "https://github.com/astral-sh/ruff.git", tag = "0.11.0" }
ruff_python_ast = { git = "https://github.com/astral-sh/ruff.git", tag = "0.13.1" }
ruff_python_codegen = { git = "https://github.com/astral-sh/ruff.git", tag = "0.13.1" }
ruff_python_parser = { git = "https://github.com/astral-sh/ruff.git", tag = "0.13.1" }
ruff_source_file = { git = "https://github.com/astral-sh/ruff.git", tag = "0.13.1" }
ruff_text_size = { git = "https://github.com/astral-sh/ruff.git", tag = "0.13.1" }

ahash = "0.8.12"
ascii = "1.1"
Expand Down
1 change: 1 addition & 0 deletions Lib/test/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def test_debug_assignment(self):
self.assertEqual(__debug__, prev)
setattr(builtins, '__debug__', prev)

@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: SyntaxError not raised by eval
def test_argument_handling(self):
# detect duplicate positional and keyword arguments
self.assertRaises(SyntaxError, eval, 'lambda a,a:0')
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_fstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,6 @@ def test_gh129093(self):
self.assertEqual(f'{f'{1!=2=}'=}', "f'{1!=2=}'='1!=2=True'")
self.assertEqual(f'{f'{1 != 2=}'=}', "f'{1 != 2=}'='1 != 2=True'")

@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: "f-string: newlines are not allowed in format specifiers" does not match "'unexpected EOF while parsing' (<string>, line 2)"
def test_newlines_in_format_specifiers(self):
cases = [
"""f'{1:d\n}'""",
Expand Down
3 changes: 3 additions & 0 deletions Lib/test/test_future_stmt/test_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def _exec_future(self, code):
)
return scope

@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: 'a,' != '(a,)'
def test_annotations(self):
eq = self.assertAnnotationEqual
eq('...')
Expand Down Expand Up @@ -362,6 +363,7 @@ def test_annotations(self):
eq('(((a, b)))', '(a, b)')
eq("1 + 2 + 3")

@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: "f'{x=!r}'" != "f'x={x!r}'"
def test_fstring_debug_annotations(self):
# f-strings with '=' don't round trip very well, so set the expected
# result explicitly.
Expand All @@ -372,6 +374,7 @@ def test_fstring_debug_annotations(self):
self.assertAnnotationEqual("f'{x=!a}'", expected="f'x={x!a}'")
self.assertAnnotationEqual("f'{x=!s:*^20}'", expected="f'x={x!s:*^20}'")

@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: '1e309, 1e309j' != '(1e309, 1e309j)'
def test_infinity_numbers(self):
inf = "1e" + repr(sys.float_info.max_10_exp + 1)
infj = f"{inf}j"
Expand Down
1 change: 1 addition & 0 deletions Lib/test/test_keywordonlyarg.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def shouldRaiseSyntaxError(s):
compile(s, "<test>", "single")
self.assertRaises(SyntaxError, shouldRaiseSyntaxError, codestr)

@unittest.expectedFailureIf(__import__('sys').platform == 'linux', 'TODO: RUSTPYTHON; AssertionError: SyntaxError not raised by shouldRaiseSyntaxError')
def testSyntaxErrorForFunctionDefinition(self):
self.assertRaisesSyntaxError("def f(p, *):\n pass\n")
self.assertRaisesSyntaxError("def f(p1, *, p1=100):\n pass\n")
Expand Down
Loading
Loading