summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-04-09 23:11:56 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-04-09 23:11:56 (GMT)
commitf10832005599cb78b20ccbae63adf8a9450ba2bf (patch)
tree48cfe55e89f9e9fe794e62c0dba080430f9d9d87
parentc157c9c2775989e83a9f5d5c414e3c501bb3cc1d (diff)
downloadcpython-f10832005599cb78b20ccbae63adf8a9450ba2bf.zip
cpython-f10832005599cb78b20ccbae63adf8a9450ba2bf.tar.gz
cpython-f10832005599cb78b20ccbae63adf8a9450ba2bf.tar.bz2
better diagnostics
-rw-r--r--Lib/test/test_quopri.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_quopri.py b/Lib/test/test_quopri.py
index 24a2f44..56a793c 100644
--- a/Lib/test/test_quopri.py
+++ b/Lib/test/test_quopri.py
@@ -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)