diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-04-11 15:37:18 -0400 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-04-11 15:37:18 -0400 |
commit | f84200ffc74ebc538f458827ff7dd561149bfabf (patch) | |
tree | 5eb82bbe0461fd425bb4b2e85ce1726b5cd29d9e /Lib/test/test_builtin.py | |
parent | 0c346d827d38917c4ab4b7679e223f163aec4724 (diff) | |
download | cpython-git-f84200ffc74ebc538f458827ff7dd561149bfabf.tar.gz |
test the change of #21193 correctly
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r-- | 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 index 9d2725e592..018ac8d921 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) |