mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Automatically create output directories
This commit is contained in:
parent
28aa67314e
commit
efc15cf4f1
2 changed files with 5 additions and 2 deletions
|
|
@ -343,10 +343,10 @@ def test_output_file(tmpdir, capsys):
|
|||
tmpdir.join("t.py").write("import os\n")
|
||||
|
||||
with tmpdir.as_cwd():
|
||||
_call_main(["t.py", "--output-file=f"], retv=1)
|
||||
_call_main(["t.py", "--output-file=a/b/f"], retv=1)
|
||||
|
||||
out, err = capsys.readouterr()
|
||||
assert out == err == ""
|
||||
|
||||
expected = "t.py:1:1: F401 'os' imported but unused\n"
|
||||
assert tmpdir.join("f").read() == expected
|
||||
assert tmpdir.join("a/b/f").read() == expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue