pytest-dev / py

Python development support library (note: maintenance only)
MIT License
67 stars 106 forks source link

pyimport: add support for PY_IGNORE_IMPORTMISMATCH #199

Closed blueyed closed 5 years ago

blueyed commented 5 years ago

Fixes https://github.com/pytest-dev/pytest/issues/2042.

nicoddemus commented 5 years ago

Thanks @blueyed!

LGTM, just missing a CHANGELOG entry which we can add later before doing a release.

I'm leaving to @RonnyPfannschmidt to take a look and see if he has any objections still. 👍

malthe commented 4 years ago

Shouldn't this be configurable in "pytest.ini" - ?

blueyed commented 4 years ago

@malthe That would be an issue for pytest, but I think it is good enough allowing to set this via env - after all it should not really happen in the first place etc.