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:
William S Fulton 2015-01-31 15:04:35 +00:00
commit 76bcec1d87
18 changed files with 118 additions and 41 deletions

View file

@ -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)):