Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita2ba480

Browse files
committed
Havetest_installation test that operations produce no warnings
By setting the `PYTHONWARNINGS` environment variable to `error` ineach of the subprocess invocations.This is strictly stronger than passing `-Werror` for the `python`commands, because it automatically applies to subprocesses (unlessthey are created with a sanitized environment or otherwise with onein which `PYTHONWARNINGS` has been customized), and because itworks for `pip` automatically.Importantly, this will cause warnings internal to Pythonsubprocesses created by `pip` to be treated as errors. It shouldthus surface any warnings coming from the `setuptools` backend.
1 parent84632c7 commita2ba480

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎test/test_installation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def _set_up_venv(rw_dir):
6464
subprocess.run,
6565
stdout=subprocess.PIPE,
6666
cwd=venv.sources,
67+
env={**os.environ,"PYTHONWARNINGS":"error"},
6768
)
6869

6970
returnvenv,run

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp