summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-06-05 11:30:23 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-06-05 11:30:23 (GMT)
commit67c399f93eda0c28e30fe8b865790c4b7cb62f37 (patch)
treeeb16ba092f3dc9debed6a08833610eaad1963260
parent2034d9a996b6a970992817176bab43d253248e9d (diff)
downloadcpython-67c399f93eda0c28e30fe8b865790c4b7cb62f37.zip
cpython-67c399f93eda0c28e30fe8b865790c4b7cb62f37.tar.gz
cpython-67c399f93eda0c28e30fe8b865790c4b7cb62f37.tar.bz2
Test fix to use floor division. Correction from merge in previous commit.
-rw-r--r--Lib/unittest/test/test_case.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/test/test_case.py b/Lib/unittest/test/test_case.py
index 21dd857..14a386a 100644
--- a/Lib/unittest/test/test_case.py
+++ b/Lib/unittest/test/test_case.py
@@ -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))