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 TestRefactoringTool(unittest.TestCase):
|
|||
|
||||
def test_print_function_option(self):
|
||||
rt = self.rt({"print_function" : True})
|
||||
self.assertTrue(rt.grammar is pygram.python_grammar_no_print_statement)
|
||||
self.assertTrue(rt.driver.grammar is
|
||||
pygram.python_grammar_no_print_statement)
|
||||
self.assertIs(rt.grammar, pygram.python_grammar_no_print_statement)
|
||||
self.assertIs(rt.driver.grammar,
|
||||
pygram.python_grammar_no_print_statement)
|
||||
|
||||
def test_write_unchanged_files_option(self):
|
||||
rt = self.rt()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue