[pytest-dev] no self-awareness for pytest

Ionel Cristian Mărieș contact at ionelmc.ro
Fri Jan 8 08:56:50 EST 2016


Would collection hooks help you here? Eg: skip/filter files that aren't
part of matplotlib.

pytest.org/latest/writing_plugins.html#collection-hooks


Thanks,
-- Ionel Cristian Mărieș, http://blog.ionelmc.ro

On Fri, Jan 8, 2016 at 3:19 PM, Jason King <pizza at netspace.net.au> wrote:

>
> I'll give testpaths a go and see what happens.
>> _______________________________________________
>>
>
> turns out I'd specified 'testpaths = tests' already in tox.ini
>
> one thing I didn't make clear, running pytest.main() with the arguments I
> listed
> earlier means that Its looking at the matplotlib install location, (ie in
> the site-packages dir,
> inside the venv, next to where numpy is installed. (not where the files
> were unpacked from)
>
> _______________________________________________
> pytest-dev mailing list
> pytest-dev at python.org
> https://mail.python.org/mailman/listinfo/pytest-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20160108/4ca4b886/attachment.html>


More information about the pytest-dev mailing list