Skip to content

Commit

Permalink
More accurate naming in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbyrnepr2 committed Sep 26, 2023
1 parent cae2a5d commit 43a459b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/brain/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def test_infer_typevar() -> None:
Test that an inferred `typing.TypeVar()` call produces a `nodes.ClassDef`
node.
"""
assign_node = builder.extract_node(
call_node = builder.extract_node(
"""
from typing import TypeVar
TypeVar('My.Type')
"""
)
with pytest.raises(InferenceError):
assign_node.inferred()
call_node.inferred()

0 comments on commit 43a459b

Please sign in to comment.