Skip to content

Commit 9aad22a

Browse files
committed
test: improve the if TYPE_CHECKING: exclusion test
1 parent 1e2f41a commit 9aad22a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_arcs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,10 +2163,12 @@ def test_default(self) -> None:
21632163
import typing
21642164
if typing.TYPE_CHECKING: # only for mypy
21652165
g = 12
2166+
else:
2167+
h = 14
21662168
""",
2167-
lines=[1,2,3,4,5,6,7,8,9,10],
2169+
lines=[1,2,3,4,5,6,7,8,9,10,14],
21682170
missing="",
2169-
branchz="23 24 56 57 89 8A BC B.",
2171+
branchz="23 24 56 57 89 8A BC BE",
21702172
branchz_missing="",
21712173
)
21722174

0 commit comments

Comments
 (0)