Skip to content

Commit

Permalink
chore: Run black on codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
tony authored and twmr committed Sep 4, 2022
1 parent 1e32dfb commit c37a7c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions pytest_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions tests/test_text_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -234,4 +233,3 @@ def test_doctest_directive(testdir):

result = testdir.runpytest()
result.stdout.fnmatch_lines(["*=== 1 failed in *"])

0 comments on commit c37a7c5

Please sign in to comment.