Skip to content

Commit

Permalink
Add working test from python/cpython#119593
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Nov 28, 2024
1 parent e965299 commit 123fa7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test_fractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,12 @@ def test_complex_handling(self):
message % ("divmod()", "complex", "quicktions.Fraction"),
divmod, b, a)

def test_three_argument_pow(self):
message = "unsupported operand type(s) for ** or pow(): '%s', '%s', '%s'"
self.assertRaisesMessage(TypeError,
message % ("quicktions.Fraction", "int", "int"),
pow, F(3), 4, 5)


class QuicktionsTest(unittest.TestCase):
_pi = (
Expand Down

0 comments on commit 123fa7c

Please sign in to comment.