[Python-checkins] cpython: test the change of #21193 correctly
benjamin.peterson
python-checkins at python.org
Fri Apr 11 21:38:10 CEST 2014
http://hg.python.org/cpython/rev/a8f3ca72f703
changeset: 90223:a8f3ca72f703
user: Benjamin Peterson <benjamin at python.org>
date: Fri Apr 11 15:37:18 2014 -0400
summary:
test the change of #21193 correctly
files:
Lib/test/test_builtin.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -1085,14 +1085,14 @@
if isinstance(x, float) or \
isinstance(y, float) or \
isinstance(z, float):
- self.assertRaises(ValueError, pow, x, y, z)
+ self.assertRaises(TypeError, pow, x, y, z)
else:
self.assertAlmostEqual(pow(x, y, z), 24.0)
self.assertAlmostEqual(pow(-1, 0.5), 1j)
self.assertAlmostEqual(pow(-1, 1/3), 0.5 + 0.8660254037844386j)
- self.assertRaises(TypeError, pow, -1, -2, 3)
+ self.assertRaises(ValueError, pow, -1, -2, 3)
self.assertRaises(ValueError, pow, 1, 2, 0)
self.assertRaises(TypeError, pow)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list