From: Guido van Rossum Date: Tue, 9 Dec 1997 19:38:39 +0000 (+0000) Subject: Fix the test for pow() -- no more TypeErrors are raised! X-Git-Tag: v1.5b2~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a24bb53d562444fad22880a3606ed91c4f66057;p=python Fix the test for pow() -- no more TypeErrors are raised! --- diff --git a/Demo/classes/Complex.py b/Demo/classes/Complex.py index d2f6f23ce0..bfb0d95ea9 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)': [