@@ -23,6 +23,7 @@ def test_subprocess(tmp_pathplus: PathPlus, monkeypatch):
23
23
)
24
24
25
25
assert result .returncode == 1
26
+ assert result .stderr == b''
26
27
assert result .stdout == b"""\
27
28
code.py:1:1: DALL000 Module lacks __all__.
28
29
code.py:2:1: W191 indentation contains tabs
@@ -32,7 +33,6 @@ def test_subprocess(tmp_pathplus: PathPlus, monkeypatch):
32
33
code.py:5:1: W293 blank line contains whitespace
33
34
code.py:5:2: W292 no newline at end of file
34
35
"""
35
- assert result .stderr == b''
36
36
37
37
with in_directory (tmp_pathplus ):
38
38
result = subprocess .run (
@@ -42,8 +42,8 @@ def test_subprocess(tmp_pathplus: PathPlus, monkeypatch):
42
42
)
43
43
44
44
assert result .returncode == 1
45
- assert result .stdout == b"code.py:1:1: DALL000 Module lacks __all__.\n "
46
45
assert result .stderr == b''
46
+ assert result .stdout == b"code.py:1:1: DALL000 Module lacks __all__.\n "
47
47
48
48
(tmp_pathplus / "tox.ini" ).write_text ("""
49
49
@@ -59,8 +59,8 @@ def test_subprocess(tmp_pathplus: PathPlus, monkeypatch):
59
59
)
60
60
61
61
assert result .returncode == 1
62
- assert result .stdout == b"code.py:1:1: DALL000 Module lacks __all__.\n "
63
62
assert result .stderr == b''
63
+ assert result .stdout == b"code.py:1:1: DALL000 Module lacks __all__.\n "
64
64
65
65
tox_ini = tmp_pathplus / "tox.ini"
66
66
tox_ini .write_text ("""
@@ -79,8 +79,8 @@ def test_subprocess(tmp_pathplus: PathPlus, monkeypatch):
79
79
)
80
80
81
81
assert result .returncode == 0
82
- assert result .stdout == b''
83
82
assert result .stderr == b''
83
+ assert result .stdout == b''
84
84
85
85
86
86
def test_subprocess_noqa (tmp_pathplus : PathPlus , monkeypatch ):
@@ -99,6 +99,7 @@ def test_subprocess_noqa(tmp_pathplus: PathPlus, monkeypatch):
99
99
)
100
100
101
101
assert result .returncode == 1
102
+ assert result .stderr == b''
102
103
assert result .stdout == b"""\
103
104
code.py:3:1: W191 indentation contains tabs
104
105
code.py:3:1: W293 blank line contains whitespace
@@ -107,7 +108,6 @@ def test_subprocess_noqa(tmp_pathplus: PathPlus, monkeypatch):
107
108
code.py:6:1: W293 blank line contains whitespace
108
109
code.py:6:2: W292 no newline at end of file
109
110
"""
110
- assert result .stderr == b''
111
111
112
112
with in_directory (tmp_pathplus ):
113
113
result = subprocess .run (
@@ -117,8 +117,8 @@ def test_subprocess_noqa(tmp_pathplus: PathPlus, monkeypatch):
117
117
)
118
118
119
119
assert result .returncode == 0
120
- assert result .stdout == b''
121
120
assert result .stderr == b''
121
+ assert result .stdout == b''
122
122
123
123
(tmp_pathplus / "tox.ini" ).write_text ("""
124
124
@@ -134,8 +134,8 @@ def test_subprocess_noqa(tmp_pathplus: PathPlus, monkeypatch):
134
134
)
135
135
136
136
assert result .returncode == 0
137
- assert result .stdout == b''
138
137
assert result .stderr == b''
138
+ assert result .stdout == b''
139
139
140
140
tox_ini = tmp_pathplus / "tox.ini"
141
141
tox_ini .write_text ("""
@@ -154,5 +154,5 @@ def test_subprocess_noqa(tmp_pathplus: PathPlus, monkeypatch):
154
154
)
155
155
156
156
assert result .returncode == 0
157
- assert result .stdout == b''
158
157
assert result .stderr == b''
158
+ assert result .stdout == b''
0 commit comments