summaryrefslogtreecommitdiffstats
path: root/Demo/classes/Complex.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-09 19:38:39 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-09 19:38:39 (GMT)
commit1a24bb53d562444fad22880a3606ed91c4f66057 (patch)
treec6330c9ba8b45dc38b5906fc8f596ec02a96c6e2 /Demo/classes/Complex.py
parentebd05eb10be1d9b5b965d53616895a8561898b67 (diff)
downloadcpython-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/Complex.py')
-rwxr-xr-xDemo/classes/Complex.py4
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)': [