diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2014-04-11 18:34:40 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2014-04-11 18:34:40 (GMT) |
commit | 0c346d827d38917c4ab4b7679e223f163aec4724 (patch) | |
tree | 9806d1fa758903c8e10be3377f301926125d4ad4 /Lib/test | |
parent | 138185fa054b5bd5fba925c7301aff7d912df25b (diff) | |
download | cpython-0c346d827d38917c4ab4b7679e223f163aec4724.zip cpython-0c346d827d38917c4ab4b7679e223f163aec4724.tar.gz cpython-0c346d827d38917c4ab4b7679e223f163aec4724.tar.bz2 |
Issue #21193: Make (e.g.,) pow(2, -3, 5) raise ValueError rather than TypeError. Patch by Josh Rosenberg.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_builtin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index b561a6f..9d2725e 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -1085,7 +1085,7 @@ class BuiltinTest(unittest.TestCase): if isinstance(x, float) or \ isinstance(y, float) or \ isinstance(z, float): - self.assertRaises(TypeError, pow, x, y, z) + self.assertRaises(ValueError, pow, x, y, z) else: self.assertAlmostEqual(pow(x, y, z), 24.0) |