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_fixers.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_fixers.py')
-rw-r--r-- | Lib/lib2to3/tests/test_fixers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/tests/test_fixers.py b/Lib/lib2to3/tests/test_fixers.py index 2464446..2f08f93 100644 --- a/Lib/lib2to3/tests/test_fixers.py +++ b/Lib/lib2to3/tests/test_fixers.py @@ -41,7 +41,7 @@ class FixerTestCase(support.TestCase): def warns(self, before, after, message, unchanged=False): tree = self._check(before, after) - self.assertTrue(message in "".join(self.fixer_log)) + self.assertIn(message, "".join(self.fixer_log)) if not unchanged: self.assertTrue(tree.was_changed) |