[Python-checkins] r62260 - python/trunk/Lib/test/test_quopri.py
gregory.p.smith
python-checkins at python.org
Thu Apr 10 01:11:56 CEST 2008
Author: gregory.p.smith
Date: Thu Apr 10 01:11:56 2008
New Revision: 62260
Modified:
python/trunk/Lib/test/test_quopri.py
Log:
better diagnostics
Modified: python/trunk/Lib/test/test_quopri.py
==============================================================================
--- python/trunk/Lib/test/test_quopri.py (original)
+++ python/trunk/Lib/test/test_quopri.py Thu Apr 10 01:11:56 2008
@@ -182,14 +182,14 @@
# 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)
More information about the Python-checkins
mailing list