Commit e0007821 authored by Tim Peters's avatar Tim Peters

Since we had a bug with multiplication of dynamic long subclasses, add a

little test to make sure it doesn't come back.
parent 7e35d57c
......@@ -901,13 +901,18 @@ def dynamics():
__dynamic__ = 1
verify("a"*I(2) == "aa")
verify(I(2)*"a" == "aa")
verify(2*I(3) == 6)
verify(I(3)*2 == 6)
verify(I(3)*I(2) == 6)
# Test handling of long*seq and seq*long
class L(long):
__dynamic__ = 1
verify("a"*L(2L) == "aa")
verify(L(2L)*"a" == "aa")
verify(2*L(3) == 6)
verify(L(3)*2 == 6)
verify(L(3)*L(2) == 6)
def errors():
if verbose: print "Testing errors..."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment