Skip to content

Commit 92c7eeb

Browse files
authored
Merge pull request #8481 from uranusjr/warning-fixes
Expect deprecation warning for build_dir in tests
2 parents acab2ee + da23209 commit 92c7eeb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/functional/test_install_cleanup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ def test_cleanup_prevented_upon_build_dir_exception(
4141
'--build', build,
4242
expect_error=(not use_new_resolver),
4343
expect_temp=(not use_new_resolver),
44+
expect_stderr=True,
4445
)
4546

47+
assert (
48+
"The -b/--build/--build-dir/--build-directory "
49+
"option is deprecated."
50+
) in result.stderr
51+
4652
if not use_new_resolver:
4753
assert result.returncode == PREVIOUS_BUILD_DIR_ERROR, str(result)
4854
assert "pip can't proceed" in result.stderr, str(result)

tests/functional/test_wheel.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,14 @@ def test_pip_wheel_fail_cause_of_previous_build_dir(
252252
'simple==3.0',
253253
expect_error=(not use_new_resolver),
254254
expect_temp=(not use_new_resolver),
255+
expect_stderr=True,
255256
)
256257

258+
assert (
259+
"The -b/--build/--build-dir/--build-directory "
260+
"option is deprecated."
261+
) in result.stderr
262+
257263
# Then I see that the error code is the right one
258264
if not use_new_resolver:
259265
assert result.returncode == PREVIOUS_BUILD_DIR_ERROR, result

0 commit comments

Comments
 (0)