CodeBlockParser: Automatically skip non-Python snippets
Gallaecio opened this issue · comments
I am getting syntax errors from a Bash code block (.. code-block:: bash
). Could sybil automatically ignore non-Python snippets?
Sybil doesn't do anything with code-block:: bash
unless you've supplied a custom parser.
What's the full traceback and exception you're seeing?
I believe my issue with Bash also stemmed from a mixup of Sybil and doctest. When I run tests against a specific .rst
file, it seems pytest runs doctest even if it’s not enabled, but everything works if I run the tests for the containing folder instead.
Oh yes, now that you mention it, I remember this and it's a pretty frustating bug in pytest:
pytest-dev/pytest#4954 (comment)
Please follow up there in the hope it might get some priority :-)