diff options
author | Georg Brandl <georg@python.org> | 2009-10-01 20:11:14 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-10-01 20:11:14 (GMT) |
commit | 46cc46af07b3d2e495117f10e591cf1dfc77608e (patch) | |
tree | 4e20b74377b756211d84233c17b231f664d80b6c | |
parent | c9062ca3087fca08e6a6fa0be292d22fe8b10d6f (diff) | |
download | cpython-46cc46af07b3d2e495117f10e591cf1dfc77608e.zip cpython-46cc46af07b3d2e495117f10e591cf1dfc77608e.tar.gz cpython-46cc46af07b3d2e495117f10e591cf1dfc77608e.tar.bz2 |
Fix some weird whitespace and two other overlong lines.
-rw-r--r-- | Lib/unittest/case.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index cac2842..fb96a88 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -608,8 +608,9 @@ class TestCase(object): except (TypeError, IndexError, NotImplementedError): differing += ('Unable to index element %d ' 'of second %s\n' % (len1, seq_type_name)) - standardMsg = differing + '\n' + '\n'.join(difflib.ndiff(pprint.pformat(seq1).splitlines(), - pprint.pformat(seq2).splitlines())) + standardMsg = differing + '\n' + '\n'.join( + difflib.ndiff(pprint.pformat(seq1).splitlines(), + pprint.pformat(seq2).splitlines())) msg = self._formatMessage(msg, standardMsg) self.fail(msg) @@ -722,7 +723,8 @@ class TestCase(object): if key not in actual: missing.append(key) elif value != actual[key]: - mismatched.append('%s, expected: %s, actual: %s' % (key, value, actual[key])) + mismatched.append('%s, expected: %s, actual: %s' % + (key, value, actual[key])) if not (missing or mismatched): return @@ -775,7 +777,8 @@ class TestCase(object): 'Second argument is not a string')) if first != second: - standardMsg = '\n' + ''.join(difflib.ndiff(first.splitlines(True), second.splitlines(True))) + standardMsg = '\n' + ''.join(difflib.ndiff(first.splitlines(True), + second.splitlines(True))) self.fail(self._formatMessage(msg, standardMsg)) def assertLess(self, a, b, msg=None): |