Fix the test for pow() -- no more TypeErrors are raised!

This commit is contained in:
Guido van Rossum 1997-12-09 19:38:39 +00:00
parent ebd05eb10b
commit 1a24bb53d5
1 changed files with 2 additions and 2 deletions

View File

@ -271,10 +271,10 @@ def test():
], ],
'pow(a,b)': [ 'pow(a,b)': [
(1, 10, 1), (1, 10, 1),
(1, Complex(0,10), 'TypeError'), (1, Complex(0,10), 1),
(Complex(0,10), 1, Complex(0,10)), (Complex(0,10), 1, Complex(0,10)),
(Complex(0,10), Complex(1), Complex(0,10)), (Complex(0,10), Complex(1), Complex(0,10)),
(Complex(1), Complex(0,10), 'TypeError'), (Complex(1), Complex(0,10), 1),
(2, Complex(4,0), 16), (2, Complex(4,0), 16),
], ],
'cmp(a,b)': [ 'cmp(a,b)': [