Skip to content

Commit a0f0415

Browse files
committed
Allow for line-break in flake8 version output
1 parent 12c425f commit a0f0415

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_all.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,12 @@ def test_help():
126126

127127

128128
def test_version():
129-
"""Check that ``rst-docstrings`` appears in the help text."""
129+
"""Check that ``rst-docstrings`` appears in the version text."""
130130
p = Popen(["flake8", "--version"], stdin=DEVNULL, stdout=PIPE)
131131
out, err = p.communicate()
132132

133133
assert not p.returncode, err
134-
assert b"rst-docstrings:" in out, "should appear in flake8 version string"
134+
assert b"rst-docstrings:" in out or b"rst-\ndocstrings:" in out, (
135+
"should appear in flake8 version string"
136+
)
135137
assert not err

0 commit comments

Comments
 (0)