diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-14 21:49:58 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-14 21:49:58 (GMT) |
commit | 8bdc130121550fa99d7e76c84a06deda21000cd4 (patch) | |
tree | 8aa47df57969d9ade01d4c858241481844901363 /Lib/lib2to3/tests/test_main.py | |
parent | 98a0d063a12c94ac9db6b1076cddad40a2fbd82b (diff) | |
download | cpython-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.py | 6 |
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.""" |