Use tool:pytest instead of pytest#20
Use tool:pytest instead of pytest#20bsipocz merged 1 commit intoastropy:masterfrom scarabeusiv:patch-1
Conversation
Usage of only pytest is no longer working on pytest 4.2+
drdavella
left a comment
There was a problem hiding this comment.
This is fine with me, but if we do this I think we need to update the minimum required version of pytest as well (should be 3.1, I think). It may also require us to formally drop support for Py27, which shouldn't be a problem.
|
You don't need to drop support for python 2.7, it just works there, I am applying this patch just to get the package buildable on python3.7 and python2.7 for openSUSE with pytest 4.2. Also [tool:pytest] is supoorted since 3.0.0 pytest. |
|
Older pytest would just ignore the section then, which is fine I guess? It is not critical for using pytest-openfiles to have the config for when running its tests. |
|
I think pytest itself should not error out, but use an existing "[tool:pytest]" section - so both could be given here then. |
|
Based on the discussion above and the all green CI, I just go ahead and merge this. |
Usage of only pytest is no longer working on pytest 4.2+