summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2014-04-11 18:34:40 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2014-04-11 18:34:40 (GMT)
commit0c346d827d38917c4ab4b7679e223f163aec4724 (patch)
tree9806d1fa758903c8e10be3377f301926125d4ad4 /Lib/test/test_builtin.py
parent138185fa054b5bd5fba925c7301aff7d912df25b (diff)
downloadcpython-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/test_builtin.py')
-rw-r--r--Lib/test/test_builtin.py2
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)