diff --git a/pytest_sphinx.py b/pytest_sphinx.py index b08d375..353dbb2 100644 --- a/pytest_sphinx.py +++ b/pytest_sphinx.py @@ -130,9 +130,7 @@ def _split_into_body_and_options(section_content): option[0] not in "+-" or option[1:] not in doctest.OPTIONFLAGS_BY_NAME ): - raise ValueError( - f"doctest has an invalid option {option}" - ) + raise ValueError(f"doctest has an invalid option {option}") flag = doctest.OPTIONFLAGS_BY_NAME[option[1:]] flag_settings[flag] = option[0] == "+" i += 1 diff --git a/tests/test_text_files.py b/tests/test_text_files.py index 23ecaf1..8abee8e 100644 --- a/tests/test_text_files.py +++ b/tests/test_text_files.py @@ -220,7 +220,6 @@ def test_doctest_directive(testdir): result = testdir.runpytest() result.stdout.fnmatch_lines(["*=== 1 passed in *"]) - testdir.maketxtfile( test_something=""" This is a paragraph. This is the @@ -234,4 +233,3 @@ def test_doctest_directive(testdir): result = testdir.runpytest() result.stdout.fnmatch_lines(["*=== 1 failed in *"]) -