diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2019-06-02 11:23:19 +0200 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-06-02 11:23:19 +0200 |
| commit | 1df977be0bf5d2c46d53c17d78edd27d126c9db0 (patch) | |
| tree | 07f530563f5e3dbf4bdb345ef6cf9becc6087de0 | |
| parent | 45753395f18376a92ce7651be9f9af44126315d6 (diff) | |
| download | astroid-git-1df977be0bf5d2c46d53c17d78edd27d126c9db0.tar.gz | |
Use the proper test index for a NamedExpr test
| -rw-r--r-- | astroid/tests/unittest_protocols.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/tests/unittest_protocols.py b/astroid/tests/unittest_protocols.py index 7d48d5b8..1b70a423 100644 --- a/astroid/tests/unittest_protocols.py +++ b/astroid/tests/unittest_protocols.py @@ -268,7 +268,7 @@ def test_named_expr_inference(): assert isinstance(node.elts[0], nodes.Const) assert node.elts[0].value == 24 - node = next(ast_nodes[4].infer()) + node = next(ast_nodes[5].infer()) assert isinstance(node, nodes.Const) assert node.value == 1 |
