On Mon, Apr 22, 2019 at 12:40:34PM -0400, Kurt Mosiejczuk wrote:
> On Mon, Apr 22, 2019 at 11:46:52AM +0200, Landry Breuil wrote:
> > Hi,
>
> > here's an update to py-test 2.1.3, i already have an okay from benoit@
> > (MAINTAINER), but i tried hard to make it use MODPY_PYTEST, and that's
> > the second port where i fail hard (the other one was, iirc,
> > geo/py-fiona)
>
> > if i use MODPY_PYTEST, the $PWD isnt right, and the test infra doesnt
> > find the modules it needs:
>
> I've found that if one specifies the directory in MODPY_PYTEST_ARGS then
> pytest works in cases like that. I converted a number of ports that
> did a cd into ${WRKSRC}/test to work that way.
>
> Originally I thought I might need a way to specify the directory to
> CD into, but found that it wasn't necessary.
>
> I was going to try and verify this for your update, but it seems it
> needs devel/proj updated to 6.0?
yes, it's on ports@ too, posted it a while ago. I also tried
${MODPY_BIN} -m pytest test but that doesnt work with the same errors:
____________________ ERROR collecting test/test_awips221.py ____________________
ImportError while importing test module
'/usr/obj/ports/py-proj-2.1.3/pyproj-2.1.3/test/test_awips221.py'.
something is really wrong.