Commit b709acd
authored
Pytest(fix): Plugin imports cleanly under pytest 9.1 (#687)
libtmux's pytest plugin failed to import under pytest 9.1, which
rejects marks applied to fixture functions during plugin import --
before test collection begins. Because the plugin ships as an
installed entry point, this aborted the entire test session for any
downstream project that has libtmux installed and upgrades to pytest
9.1+ (for example, tmuxp). This removes the offending no-op mark and
stops the project from hiding pytest compatibility warnings in its
own configuration.
- **pytest 9.1 plugin import**: Remove the no-op `skipif` mark from the
`zshrc` fixture. Marks on fixtures never had any effect; the real
zsh gating lives in `conftest.py` and is unchanged, so behavior is
identical for zsh and non-zsh users.
- **Visible compatibility warnings**: Drop the project `filterwarnings`
ignore block (libtmux deprecations, test deprecations, and the
docutils `frontend.OptionParser` deprecation) so compatibility
signals surface in development and CI instead of being hidden.
- **Changelog**: Document the fix under the 0.59.x unreleased block.
Fixes #6863 files changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
48 | 57 | | |
49 | 58 | | |
50 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
| |||
0 commit comments