Skip to content

Commit 123fa7c

Browse files
committed
Add working test from python/cpython#119593
1 parent e965299 commit 123fa7c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test_fractions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,12 @@ def test_complex_handling(self):
18531853
message % ("divmod()", "complex", "quicktions.Fraction"),
18541854
divmod, b, a)
18551855

1856+
def test_three_argument_pow(self):
1857+
message = "unsupported operand type(s) for ** or pow(): '%s', '%s', '%s'"
1858+
self.assertRaisesMessage(TypeError,
1859+
message % ("quicktions.Fraction", "int", "int"),
1860+
pow, F(3), 4, 5)
1861+
18561862

18571863
class QuicktionsTest(unittest.TestCase):
18581864
_pi = (

0 commit comments

Comments
 (0)