From eb9e074dcaeaf4212750f32c106fb12fc4d9f57c Mon Sep 17 00:00:00 2001 From: R David Murray Date: Sun, 10 Apr 2011 15:28:29 -0400 Subject: Use stock assertEqual instead of custom ndiffAssertEqual. Eventually I'll actually replace the calls in the tests themselves. --- Lib/test/test_email/__init__.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Lib/test/test_email/__init__.py b/Lib/test/test_email/__init__.py index 54d1c9a..69be678 100644 --- a/Lib/test/test_email/__init__.py +++ b/Lib/test/test_email/__init__.py @@ -29,15 +29,7 @@ class TestEmailBase(unittest.TestCase): super().__init__(*args, **kw) self.addTypeEqualityFunc(bytes, self.assertBytesEqual) - def ndiffAssertEqual(self, first, second): - """Like assertEqual except use ndiff for readable output.""" - if first != second: - sfirst = str(first) - ssecond = str(second) - rfirst = [repr(line) for line in sfirst.splitlines()] - rsecond = [repr(line) for line in ssecond.splitlines()] - diff = difflib.ndiff(rfirst, rsecond) - raise self.failureException(NL + NL.join(diff)) + ndiffAssertEqual = unittest.TestCase.assertEqual def _msgobj(self, filename): with openfile(filename) as fp: -- cgit v0.12