New issue 650: Allow --doctest-modules to skip modules on ImportError
https://bitbucket.org/hpk42/pytest/issue/650/allow-doctest-modules-to-skip-modules-on

Charles Cloud:

We're working on a library that has many optional dependencies but we also find 
doctests to be a very effective way to illustrate simple examples of functions 
and test them at the same time. We'd be overjoyed if there was a way in 
`py.test` to have an option that allows us to skip doctesting files that have 
things that cannot be imported.

Something like:

`--doctest-skip-on-import-failure` (maybe something less verbose, but we'd be 
happy either way)

I'm also happy to close the issue if there's already a way to do this. Thanks!


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to