summaryrefslogtreecommitdiff
path: root/Lib/test/test_pow.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-12-07 10:05:27 +0000
committerRaymond Hettinger <python@rcn.com>2002-12-07 10:05:27 +0000
commit3ea390e1fca024fb3d29409029d87b2b88e49848 (patch)
tree02c69df87ce666ce1dc972ac506e497014d8b03a /Lib/test/test_pow.py
parentf0c6dfe0f3f18091f1c508214051cd017ab5288d (diff)
downloadcpython-3ea390e1fca024fb3d29409029d87b2b88e49848.tar.gz
Fix typo in abstract.c which caused __rpow__ to not be invoked.
Added related testcase. Closes SF bug #643260.
Diffstat (limited to 'Lib/test/test_pow.py')
-rw-r--r--Lib/test/test_pow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_pow.py b/Lib/test/test_pow.py
index 2b3465c7f9..e88a63d08e 100644
--- a/Lib/test/test_pow.py
+++ b/Lib/test/test_pow.py
@@ -118,3 +118,8 @@ for i in range(-10, 11):
o = pow(long(i),j) % k
n = pow(long(i),j,k)
if o != n: print 'Integer mismatch:', i,j,k
+
+class TestRpow:
+ def __rpow__(self, other):
+ return None
+None ** TestRpow() # Won't fail when __rpow__ invoked. SF bug #643260.