Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Feb 23, 2024
1 parent a7e68e3 commit 145b911
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/functional/u/used/used_before_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ def turn_on2(**kwargs):
# Variables guarded by the same test when used.

# Always false
if __name__ == "__main__":
if 1 in []:
PERCENT = 20
SALE = True

if __name__ == "__main__":
if 1 in []:
print(PERCENT)

# Different test
if __name__ is None:
if 1 in [1]:
print(SALE) # [used-before-assignment]


Expand Down

0 comments on commit 145b911

Please sign in to comment.