sphinx-contrib / spelling

A spelling checker for Sphinx-based documentation
https://sphinxcontrib-spelling.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
82 stars 48 forks source link

filters: treat __main__ as special #143

Closed dhellmann closed 2 years ago

dhellmann commented 2 years ago

If the test suite is invoked by running python -m pytest instead of pytest then there will be no __main__ and find_spec() will fail.

Fixes #141