mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #19592: Use specific asserts in lib2to3 tests.
This commit is contained in:
parent
98a0d063a1
commit
8bdc130121
5 changed files with 17 additions and 17 deletions
|
@ -49,9 +49,9 @@ class TestMain(unittest.TestCase):
|
|||
ret = self.run_2to3_capture(["-"], input_stream, out_enc, err)
|
||||
self.assertEqual(ret, 0)
|
||||
output = out.getvalue().decode("ascii")
|
||||
self.assertTrue("-print 'nothing'" in output)
|
||||
self.assertTrue("WARNING: couldn't encode <stdin>'s diff for "
|
||||
"your terminal" in err.getvalue())
|
||||
self.assertIn("-print 'nothing'", output)
|
||||
self.assertIn("WARNING: couldn't encode <stdin>'s diff for "
|
||||
"your terminal", err.getvalue())
|
||||
|
||||
def setup_test_source_trees(self):
|
||||
"""Setup a test source tree and output destination tree."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue