mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Fix typos in comments and test code (#122846)
This commit is contained in:
parent
9375b9ca3a
commit
253c6a0b2f
18 changed files with 28 additions and 28 deletions
|
|
@ -2701,13 +2701,13 @@ class EndPositionTests(unittest.TestCase):
|
|||
|
||||
|
||||
class NodeTransformerTests(ASTTestMixin, unittest.TestCase):
|
||||
def assertASTTransformation(self, tranformer_class,
|
||||
def assertASTTransformation(self, transformer_class,
|
||||
initial_code, expected_code):
|
||||
initial_ast = ast.parse(dedent(initial_code))
|
||||
expected_ast = ast.parse(dedent(expected_code))
|
||||
|
||||
tranformer = tranformer_class()
|
||||
result_ast = ast.fix_missing_locations(tranformer.visit(initial_ast))
|
||||
transformer = transformer_class()
|
||||
result_ast = ast.fix_missing_locations(transformer.visit(initial_ast))
|
||||
|
||||
self.assertASTEqual(result_ast, expected_ast)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue