FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-102840: Fix confused traceback when `floordiv` or `mod` operations happens between `Fraction` and `complex` objects by Eclips4 · Pull Request #102842 · python/cpython · GitHub

Repository navigation

Prev Previous commit
Next Next commit
Fix indent
  • Loading branch information
Eclips4 authored Jan 1, 2024
commit 5f878ea426a464df6fb573e6921039bb0f5266bc
2 changes: 1 addition & 1 deletion Lib/test/test_fractions.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ def test_float_format_testfile(self):
self.assertEqual(float(format(f, fmt2)), float(rhs))
self.assertEqual(float(format(-f, fmt2)), float('-' + rhs))

def test_traceback_in_mod_and_floordiv_with_complex_objects(self):
def test_traceback_in_mod_and_floordiv_with_complex_objects(self):
Comment thread
Eclips4 marked this conversation as resolved.
Resolved
# See issue gh-102840 for more details.

a = F(1, 2)
Expand Down

Back | FazBrowse Home | New Git URL