TST: require pytest-doctestplus 1.0.0 or newer#17682
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
|
I checked manually that "exotic archs" all have access to at least v1.2.1 |
pytest-doctestplus 1.0.0 or newer
|
sure, but the fact that it only happens with pytest-doctestplus < 1.0 seems to indicate an incompatibility between older pytest-doctestplus and pytest 8.0 (which isn't too suprising: pytest-doctestplus 1.0.0 is still older than pytest 8.0.0) |
|
pytest-doctestplus was released Aug 11, 2023. Not too recent but also not yet 2 years (as per SPEC 0 philosophy). 🤔 @bsipocz , what do you think about requiring |
|
I'm not sure I get the line of reasoning here as we just required pytest 8.0.0 yesterday, and it's a single year old. |
|
True... now makes me think if we bumped pytest too soon... but I did like the code simplification. 😱 |
|
I will think about this and get back to you |
|
@pllim did you get a chance to think about it ? I still believe in this approach. |
pllim
left a comment
There was a problem hiding this comment.
I still don't completely understand the root of the problem but also no time to jump in that rabbit hole given more pressing matters. And I don't hear objections, so let's do it. Thanks!
Description
Follow up to #17675
Close #17681
I ran multiple tests on my fork combining the change from #16963 (really, the only option to really check minimal test requirements at the moment), against different versions of
pytest-doctestplus. I found that v0.13.0 wasn't compatible and that v1.0.0 was, which makes it our de-facto minimal requirement following #17675.