Skip to content

Commit 234bc80

Browse files
committed
Fix method_locals test case
1 parent 148240d commit 234bc80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_builder.py

+1-1
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):

0 commit comments

Comments
 (0)