Kaydet (Commit) f1083200 authored tarafından Gregory P. Smith's avatar Gregory P. Smith

better diagnostics

üst c157c9c2
...@@ -182,14 +182,14 @@ zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz''') ...@@ -182,14 +182,14 @@ zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz''')
# On Windows, Python will output the result to stdout using # On Windows, Python will output the result to stdout using
# CRLF, as the mode of stdout is text mode. To compare this # 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. # 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): def test_scriptdecode(self):
(p, e) = self.STRINGS[-1] (p, e) = self.STRINGS[-1]
process = subprocess.Popen([sys.executable, "-mquopri", "-d"], process = subprocess.Popen([sys.executable, "-mquopri", "-d"],
stdin=subprocess.PIPE, stdout=subprocess.PIPE) stdin=subprocess.PIPE, stdout=subprocess.PIPE)
cout, cerr = process.communicate(e) cout, cerr = process.communicate(e)
self.assert_(cout.splitlines() == p.splitlines()) self.assertEqual(cout.splitlines(), p.splitlines())
def test_main(): def test_main():
test_support.run_unittest(QuopriTestCase) test_support.run_unittest(QuopriTestCase)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment