Test-suite fixes for python -classic
These are mostly workarounds for static class members not being supported for old style classes, as documented in Python.html, "C++ classes".
This commit is contained in:
parent
39a75442a1
commit
76bcec1d87
18 changed files with 118 additions and 41 deletions
|
|
@ -7,6 +7,11 @@ def failed(a, b, msg):
|
|||
raise RuntimeError, msg + " " + str(list(a)) + " " + str(list(b))
|
||||
|
||||
def compare_sequences(a, b):
|
||||
print("Comparing {} and {}\n".format(a, b))
|
||||
print(" len a: {}\n".format(a.__len__()))
|
||||
print(" len b: {}\n".format(b.__len__()))
|
||||
print(" len a: {}\n".format(type(a.__len__())))
|
||||
print(" len b: {}\n".format(type(b.__len__())))
|
||||
if len(a) != len(b):
|
||||
failed(a, b, "different sizes")
|
||||
for i in range(len(a)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue