diff options
| author | Jeff Epler <jepler@unpythonic.net> | 2018-03-25 16:01:06 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2018-03-29 06:42:10 -0500 |
| commit | a55988a547011c04978a1661325062397ef74110 (patch) | |
| tree | 2b9cee87e038cfd525c4dfc6c3932e44683f73af /tests/basics | |
| parent | 1eba5804434a8acc182c23aadf5b5a5dcbe901fa (diff) | |
Fix assertion failure in mpz_divmod_inpl
.. turning this from an assertion failure into an exception:
pow(1,1,0)
Diffstat (limited to 'tests/basics')
| -rw-r--r-- | tests/basics/builtin_pow3.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/builtin_pow3.py b/tests/basics/builtin_pow3.py index 69b57e548..293a5acc9 100644 --- a/tests/basics/builtin_pow3.py +++ b/tests/basics/builtin_pow3.py @@ -22,3 +22,8 @@ try: print(pow(4, 5, "z")) except TypeError: print("TypeError expected") + +try: + print(pow(4, 5, 0)) +except ValueError: + print("ValueError expected") |
