Fix python tests for old versions of Python

This commit is contained in:
William S Fulton 2015-01-31 17:38:06 +00:00
commit f1213809a2
6 changed files with 29 additions and 14 deletions

View file

@ -7,11 +7,6 @@ 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)):