@@ -26,6 +26,7 @@ def test_install_report_basic(
26
26
str (shared_data .root / "packages/" ),
27
27
"--report" ,
28
28
str (report_path ),
29
+ allow_stderr_warning = True ,
29
30
)
30
31
report = json .loads (report_path .read_text ())
31
32
assert "install" in report
@@ -58,6 +59,7 @@ def test_install_report_dep(
58
59
str (shared_data .root / "packages/" ),
59
60
"--report" ,
60
61
str (report_path ),
62
+ allow_stderr_warning = True ,
61
63
)
62
64
report = json .loads (report_path .read_text ())
63
65
assert len (report ["install" ]) == 2
@@ -76,6 +78,7 @@ def test_install_report_index(script: PipTestEnvironment, tmp_path: Path) -> Non
76
78
"Paste[openid]==1.7.5.1" ,
77
79
"--report" ,
78
80
str (report_path ),
81
+ allow_stderr_warning = True ,
79
82
)
80
83
report = json .loads (report_path .read_text ())
81
84
assert len (report ["install" ]) == 2
@@ -111,6 +114,7 @@ def test_install_report_vcs_and_wheel_cache(
111
114
str (cache_dir ),
112
115
"--report" ,
113
116
str (report_path ),
117
+ allow_stderr_warning = True ,
114
118
)
115
119
report = json .loads (report_path .read_text ())
116
120
assert len (report ["install" ]) == 1
@@ -138,6 +142,7 @@ def test_install_report_vcs_and_wheel_cache(
138
142
str (cache_dir ),
139
143
"--report" ,
140
144
str (report_path ),
145
+ allow_stderr_warning = True ,
141
146
)
142
147
assert "Using cached pip_test_package" in result .stdout
143
148
report = json .loads (report_path .read_text ())
@@ -171,6 +176,7 @@ def test_install_report_vcs_editable(
171
176
"#egg=pip-test-package" ,
172
177
"--report" ,
173
178
str (report_path ),
179
+ allow_stderr_warning = True ,
174
180
)
175
181
report = json .loads (report_path .read_text ())
176
182
assert len (report ["install" ]) == 1
@@ -197,8 +203,12 @@ def test_install_report_to_stdout(
197
203
str (shared_data .root / "packages/" ),
198
204
"--report" ,
199
205
"-" ,
206
+ allow_stderr_warning = True ,
207
+ )
208
+ assert result .stderr == (
209
+ "WARNING: --report is currently an experimental option. "
210
+ "The output format may change in a future release without prior warning.\n "
200
211
)
201
- assert not result .stderr
202
212
report = json .loads (result .stdout )
203
213
assert "install" in report
204
214
assert len (report ["install" ]) == 1
0 commit comments