Skip test_recommonmark/ directory if recommonmark is missing.
commit3a20635be140c27b7bf52f0693576ca720f0c6db
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Fri, 2 Dec 2022 17:13:54 +0000 (2 17:13 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Fri, 2 Dec 2022 17:13:54 +0000 (2 17:13 +0000)
tree46072ac13a6df9d27a29a7d6ad05ef7348cdac3f
parentb37ecbb618c20229712ffaa2e5cbafff039684a7
Skip test_recommonmark/ directory if recommonmark is missing.

After basing "alltests.py" on the `unittest.defaultTestLoader`, we can (again)
skip the complete directory from the __init__.py file.

Simplify recommonmark test files (when running individually,
failing with an ImportError when recommonmark is missing is no problem).
Keep the `sys.path` setup, we still want test the local "docutils" package.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@9301 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
14 files changed:
docutils/test/test_parsers/test_recommonmark/__init__.py
docutils/test/test_parsers/test_recommonmark/test_block_quotes.py
docutils/test/test_parsers/test_recommonmark/test_bullet_lists.py
docutils/test/test_parsers/test_recommonmark/test_enumerated_lists.py
docutils/test/test_parsers/test_recommonmark/test_html_blocks.py
docutils/test/test_parsers/test_recommonmark/test_inline_markup.py
docutils/test/test_parsers/test_recommonmark/test_line_length_limit.py
docutils/test/test_parsers/test_recommonmark/test_line_length_limit_default.py
docutils/test/test_parsers/test_recommonmark/test_literal_blocks.py
docutils/test/test_parsers/test_recommonmark/test_misc.py
docutils/test/test_parsers/test_recommonmark/test_paragraphs.py
docutils/test/test_parsers/test_recommonmark/test_section_headers.py
docutils/test/test_parsers/test_recommonmark/test_targets.py
docutils/test/test_parsers/test_recommonmark/test_transitions.py