Commit 8f2de13
Tighten _legacy_only_url and clean up test imports
Per /simplify review on PR #256:
- Unify the two `wqp_url(service)` returns in `_legacy_only_url` into a
single return inside `warnings.catch_warnings()`, gating the warn and
filter on `not legacy`.
- Document the asymmetric `stacklevel=3` in `_warn_wqx3_unavailable`.
- Hoist `import warnings` from inside the new regression test to the
module-level imports in `tests/wqp_test.py`.
- Compress the regression test's docstring.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 44794b4 commit 8f2de13
2 files changed
Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
| 694 | + | |
694 | 695 | | |
695 | 696 | | |
696 | 697 | | |
| |||
707 | 708 | | |
708 | 709 | | |
709 | 710 | | |
710 | | - | |
711 | | - | |
712 | | - | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
713 | 714 | | |
714 | | - | |
715 | | - | |
| 715 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 223 | + | |
| 224 | + | |
229 | 225 | | |
230 | 226 | | |
231 | 227 | | |
| |||
0 commit comments