]> granicus.if.org Git - python/commitdiff
better diagnostics
authorGregory P. Smith <greg@mad-scientist.com>
Wed, 9 Apr 2008 23:11:56 +0000 (23:11 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Wed, 9 Apr 2008 23:11:56 +0000 (23:11 +0000)
Lib/test/test_quopri.py

index 24a2f44b384a09f4563ac1f41dd5935aa352b9d1..56a793c92b5306d9d49e9547371d378d1ab622a5 100644 (file)
@@ -182,14 +182,14 @@ zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz''')
         # On Windows, Python will output the result to stdout using
         # CRLF, as the mode of stdout is text mode. To compare this
         # with the expected result, we need to do a line-by-line comparison.
-        self.assert_(cout.splitlines() == e.splitlines())
+        self.assertEqual(cout.splitlines(), e.splitlines())
 
     def test_scriptdecode(self):
         (p, e) = self.STRINGS[-1]
         process = subprocess.Popen([sys.executable, "-mquopri", "-d"],
                                    stdin=subprocess.PIPE, stdout=subprocess.PIPE)
         cout, cerr = process.communicate(e)
-        self.assert_(cout.splitlines() == p.splitlines())
+        self.assertEqual(cout.splitlines(), p.splitlines())
 
 def test_main():
     test_support.run_unittest(QuopriTestCase)