mirror of
https://github.com/python/cpython.git
synced 2026-03-27 07:00:54 +00:00
better diagnostics
This commit is contained in:
parent
c157c9c277
commit
f108320055
1 changed files with 2 additions and 2 deletions
|
|
@ -182,14 +182,14 @@ def test_scriptencode(self):
|
|||
# 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue