mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +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
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue