diff options
author | Raymond Hettinger <python@rcn.com> | 2002-12-07 10:05:27 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-12-07 10:05:27 (GMT) |
commit | c2e095f6f4bc7234442c704919429bfbe39b00c3 (patch) | |
tree | 0eb5e62645488448874ef6771c1ca6947d2f0ee0 /Lib/test/test_pow.py | |
parent | f9229d98ae86aa9a68a34b6b3f4db0706be214f5 (diff) | |
download | cpython-c2e095f6f4bc7234442c704919429bfbe39b00c3.zip cpython-c2e095f6f4bc7234442c704919429bfbe39b00c3.tar.gz cpython-c2e095f6f4bc7234442c704919429bfbe39b00c3.tar.bz2 |
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.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_pow.py b/Lib/test/test_pow.py index 2b3465c..e88a63d 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. |