# fixhunt regression fixture: ruff FURB103, ruff 0.17.1 # the fix labelled safe changes the program's output on this program # before the fix: stdout "''", exit 0 # after the fix: stdout "'should not happen'", exit 0 # finding 2026-10-17T19-38-23-545Z-dfhv-ruff-FURB103/r1-p006; rule fired 1 time(s) before the fix flag = False with open('s.txt', 'w') as f: flag and f.write('should not happen') with open('s.txt', 'r') as f: print(repr(f.read()))