summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/tests/test_main.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-14 21:49:58 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-14 21:49:58 (GMT)
commit8bdc130121550fa99d7e76c84a06deda21000cd4 (patch)
tree8aa47df57969d9ade01d4c858241481844901363 /Lib/lib2to3/tests/test_main.py
parent98a0d063a12c94ac9db6b1076cddad40a2fbd82b (diff)
downloadcpython-8bdc130121550fa99d7e76c84a06deda21000cd4.zip
cpython-8bdc130121550fa99d7e76c84a06deda21000cd4.tar.gz
cpython-8bdc130121550fa99d7e76c84a06deda21000cd4.tar.bz2
Issue #19592: Use specific asserts in lib2to3 tests.
Diffstat (limited to 'Lib/lib2to3/tests/test_main.py')
-rw-r--r--Lib/lib2to3/tests/test_main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/lib2to3/tests/test_main.py b/Lib/lib2to3/tests/test_main.py
index a498c5a..a33c45c 100644
--- a/Lib/lib2to3/tests/test_main.py
+++ b/Lib/lib2to3/tests/test_main.py
@@ -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."""