Commit 67c399f9 authored by Michael Foord's avatar Michael Foord

Test fix to use floor division. Correction from merge in previous commit.

parent 2034d9a9
......@@ -597,7 +597,7 @@ class Test_TestCase(unittest.TestCase, TestEquality, TestHashing):
diff = '\n'.join(difflib.ndiff(pprint.pformat(seq1).splitlines(),
pprint.pformat(seq2).splitlines()))
try:
self.assertSequenceEqual(seq1, seq2, max_diff=len(diff)/2)
self.assertSequenceEqual(seq1, seq2, max_diff=len(diff)//2)
except AssertionError as e:
msg = e.args[0]
self.assertTrue(len(msg) < len(diff))
......
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