From: Benjamin Peterson Date: Fri, 11 Apr 2014 19:37:18 +0000 (-0400) Subject: test the change of #21193 correctly X-Git-Tag: v3.5.0a1~1906 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f84200ffc74ebc538f458827ff7dd561149bfabf;p=thirdparty%2FPython%2Fcpython.git test the change of #21193 correctly --- diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 9d2725e59231..018ac8d92131 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -1085,14 +1085,14 @@ class BuiltinTest(unittest.TestCase): 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)