diff options
author | Guido van Rossum <guido@python.org> | 1997-12-09 19:38:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-09 19:38:39 (GMT) |
commit | 1a24bb53d562444fad22880a3606ed91c4f66057 (patch) | |
tree | c6330c9ba8b45dc38b5906fc8f596ec02a96c6e2 /Demo/classes | |
parent | ebd05eb10be1d9b5b965d53616895a8561898b67 (diff) | |
download | cpython-1a24bb53d562444fad22880a3606ed91c4f66057.zip cpython-1a24bb53d562444fad22880a3606ed91c4f66057.tar.gz cpython-1a24bb53d562444fad22880a3606ed91c4f66057.tar.bz2 |
Fix the test for pow() -- no more TypeErrors are raised!
Diffstat (limited to 'Demo/classes')
-rwxr-xr-x | Demo/classes/Complex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/classes/Complex.py b/Demo/classes/Complex.py index d2f6f23..bfb0d95 100755 --- a/Demo/classes/Complex.py +++ b/Demo/classes/Complex.py @@ -271,10 +271,10 @@ def test(): ], 'pow(a,b)': [ (1, 10, 1), - (1, Complex(0,10), 'TypeError'), + (1, Complex(0,10), 1), (Complex(0,10), 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), ], 'cmp(a,b)': [ |