summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_email
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-04-10 19:28:29 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-04-10 19:28:29 (GMT)
commiteb9e074dcaeaf4212750f32c106fb12fc4d9f57c (patch)
tree52399539253a2d95c09259601c7161287343e386 /Lib/test/test_email
parent88fdeb45ef86385b5ac212929fbbf69711f9245a (diff)
downloadcpython-eb9e074dcaeaf4212750f32c106fb12fc4d9f57c.zip
cpython-eb9e074dcaeaf4212750f32c106fb12fc4d9f57c.tar.gz
cpython-eb9e074dcaeaf4212750f32c106fb12fc4d9f57c.tar.bz2
Use stock assertEqual instead of custom ndiffAssertEqual.
Eventually I'll actually replace the calls in the tests themselves.
Diffstat (limited to 'Lib/test/test_email')
-rw-r--r--Lib/test/test_email/__init__.py10
1 files changed, 1 insertions, 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: