Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Nov 3, 2024
1 parent e955887 commit 1c538af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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 @@ -149,10 +149,10 @@ def turn_on2(**kwargs):


# Always true
if x := True:
y = 1
if always_true := True:
ONE = 1

print(y if x else 2)
print(ONE if always_true else 2)


# Different test
Expand Down
14 changes: 7 additions & 7 deletions tests/functional/u/used/used_before_assignment.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ possibly-used-before-assignment:75:3:75:7::Possibly using variable 'VAR5' before
used-before-assignment:80:3:80:7::Using variable 'VAR6' before assignment:INFERENCE
used-before-assignment:115:6:115:11::Using variable 'VAR10' before assignment:INFERENCE
possibly-used-before-assignment:121:6:121:11::Possibly using variable 'VAR12' before assignment:CONTROL_FLOW
used-before-assignment:152:10:152:14::Using variable 'SALE' before assignment:INFERENCE
used-before-assignment:184:10:184:18::Using variable 'ALL_DONE' before assignment:INFERENCE
used-before-assignment:195:6:195:24::Using variable 'NOT_ALWAYS_DEFINED' before assignment:INFERENCE
used-before-assignment:231:10:231:11::Using variable 'x' before assignment:CONTROL_FLOW
possibly-used-before-assignment:245:10:245:15:__:Possibly using variable 'fail1' before assignment:CONTROL_FLOW
used-before-assignment:259:18:259:19:outer_.inner_try:Using variable 'a' before assignment:HIGH
used-before-assignment:270:18:270:19:outer_.inner_while:Using variable 'a' before assignment:HIGH
used-before-assignment:160:10:160:14::Using variable 'SALE' before assignment:INFERENCE
used-before-assignment:192:10:192:18::Using variable 'ALL_DONE' before assignment:INFERENCE
used-before-assignment:203:6:203:24::Using variable 'NOT_ALWAYS_DEFINED' before assignment:INFERENCE
used-before-assignment:239:10:239:11::Using variable 'x' before assignment:CONTROL_FLOW
possibly-used-before-assignment:253:10:253:15:__:Possibly using variable 'fail1' before assignment:CONTROL_FLOW
used-before-assignment:267:18:267:19:outer_.inner_try:Using variable 'a' before assignment:HIGH
used-before-assignment:278:18:278:19:outer_.inner_while:Using variable 'a' before assignment:HIGH

0 comments on commit 1c538af

Please sign in to comment.