Commit b1897ae
committed
test(opennebula): remove leftover global assignment in test_find_candidates
When test_find_candidates was refactored from a try/finally pattern to
@mock.patch in d482353, the bare global assignment
`util.find_devs_with = my_devs_with` was left in by mistake. The
try/finally used to save and restore the original; without it, this
assignment leaks state and can cause order-dependent failures in other
tests. The @mock.patch decorator already patches the function correctly
and restores it after the test.
Refs GH-68101 parent 8029b63 commit b1897ae
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
370 | 368 | | |
371 | 369 | | |
372 | 370 | | |
| |||
0 commit comments