Skip to content

Commit

Permalink
Use verbose regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jul 12, 2022
1 parent 6e6d21a commit d76312c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytest_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def _is_doctest(config, path, parent):
_OPTION_SKIPIF_RE = re.compile(r':skipif:\s*([^\n\'"]*)$')

_DIRECTIVE_RE = re.compile(
r"\s*\.\. ("
r"testcode|testoutput|testsetup|testcleanup|doctest"
r')::\s*([^\n\'"]*)$'
r"\s*\.\.\s"
r"(testcode|testoutput|testsetup|testcleanup|doctest)"
r'::\s*([^\n\'"]*)$', re.VERBOSE
)


Expand Down

0 comments on commit d76312c

Please sign in to comment.