Commit e3461d3
committed
chore(test_common): Fix yoda statements repaired by ruff 0.1.9
> ruff . --fix
tests/legacy_api/test_common.py:46:9: SIM300 [*] Yoda conditions are discouraged, use `get_version() == "%s-master" % TMUX_MAX_VERSION` instead
tests/legacy_api/test_common.py:84:9: SIM300 [*] Yoda conditions are discouraged, use `get_version() == "%s-openbsd" % TMUX_MAX_VERSION` instead
tests/test_common.py:46:9: SIM300 [*] Yoda conditions are discouraged, use `get_version() == "%s-master" % TMUX_MAX_VERSION` instead
tests/test_common.py:84:9: SIM300 [*] Yoda conditions are discouraged, use `get_version() == "%s-openbsd" % TMUX_MAX_VERSION` instead
Found 4 errors.
[*] 4 fixable with the `--fix` option.1 parent 9dc1864 commit e3461d3
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
0 commit comments