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
2 changes: 0 additions & 2 deletions Lib/test/test_fractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,6 @@ def test_float_format_testfile(self):
self.assertEqual(float(format(f, fmt2)), float(rhs))
self.assertEqual(float(format(-f, fmt2)), float('-' + rhs))

@unittest.expectedFailure # TODO: RUSTPYTHON; TypeError: '%' not supported between instances of 'Fraction' and 'complex'
def test_complex_handling(self):
# See issue gh-102840 for more details.

Expand Down Expand Up @@ -1697,7 +1696,6 @@ def test_complex_handling(self):
message % ("divmod()", "complex", "Fraction"),
divmod, b, a)

@unittest.expectedFailure # TODO: RUSTPYTHON; Wrong error message
def test_three_argument_pow(self):
message = "unsupported operand type(s) for ** or pow(): '%s', '%s', '%s'"
self.assertRaisesMessage(TypeError,
Expand Down
4 changes: 2 additions & 2 deletions crates/vm/src/vm/vm_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ impl VirtualMachine {
} else {
self.new_type_error(format!(
"unsupported operand type(s) for {}: \
'{}' and '{}', '{}'",
'{}', '{}', '{}'",
op_str,
a.class(),
b.class(),
Expand Down Expand Up @@ -401,7 +401,7 @@ impl VirtualMachine {

binary_func!(_sub, Subtract, "-");
binary_func!(_mod, Remainder, "%");
binary_func!(_divmod, Divmod, "divmod");
binary_func!(_divmod, Divmod, "divmod()");
binary_func!(_lshift, Lshift, "<<");
binary_func!(_rshift, Rshift, ">>");
binary_func!(_and, And, "&");
Expand Down
Loading