Skip to content

Commit 531acb8

Browse files
committed
Fix method_locals test case
1 parent 4227a01 commit 531acb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ def test_method_locals(self) -> None:
850850
"""Test the 'locals' dictionary of an astroid method."""
851851
method = self.module["YOUPI"]["method"]
852852
# ListComp variables are not accessible outside
853-
self.assertEqual(sorted(method.locals), ["autre", "local", "self"])
853+
self.assertEqual(sorted(method.locals), ["a", "autre", "local", "self"])
854854

855855
def test_unknown_encoding(self) -> None:
856856
with self.assertRaises(AstroidSyntaxError):

tests/testdata/python3/data/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def method(self):
5959
return 'hehe'
6060
global_access(local, val=autre)
6161
finally:
62-
# return in finally was previousely tested here but became a syntax error
62+
# return in finally was previously tested here but became a syntax error
6363
# in 3.14 and this file is used in 188/1464 tests
6464
a = local
6565

0 commit comments

Comments
 (0)