Skip to content

Commit

Permalink
Add unused variables to defined variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kreathon committed Sep 17, 2022
1 parent f2aecbe commit a362a25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_scavenging.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ class X:
"""
)
check(v.defined_classes, ["X"])
check(v.defined_vars, ["a", "b", "c", "x"])
check(v.defined_vars, ["a", "b", "c", "u", "x"])

check(v.unused_classes, [])
check(v.unused_vars, ["u"])
Expand Down Expand Up @@ -825,7 +825,7 @@ class X:
"""
)
check(v.defined_classes, ["X"])
check(v.defined_vars, ["a", "b", "c", "d", "e", "x"])
check(v.defined_vars, ["a", "b", "c", "d", "e", "u", "x"])

check(v.unused_classes, [])
check(v.unused_vars, ["u"])
Expand Down Expand Up @@ -856,7 +856,7 @@ class Color(Enum):
"""
)
check(v.defined_classes, ["Color"])
check(v.defined_vars, ["RED", "YELLOW", "GREEN", "color"])
check(v.defined_vars, ["RED", "YELLOW", "GREEN", "BLUE", "color"])

check(v.unused_classes, [])
check(v.unused_vars, ["BLUE"])

0 comments on commit a362a25

Please sign in to comment.