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

Commit0a497c7

Browse files
regendoc: remove CI environment variables (#13950) (#13951)
pytest auto-detects and uses more verbose output when running in CI.Change tox:regendoc to remove those environment variables, because we do not want extra verbose output in the user documentation.See#13938 (comment).(cherry picked from commit82e9b97)Co-authored-by: Bruno Oliveira <bruno@pytest.org>
1 parenta9f7e6e commit0a497c7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎src/_pytest/compat.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,6 @@ def __call__(self) -> bool:
309309
defrunning_on_ci()->bool:
310310
"""Check if we're currently running on a CI system."""
311311
# Only enable CI mode if one of these env variables is defined and non-empty.
312+
# Note: review `regendoc` tox env in case this list is changed.
312313
env_vars= ["CI","BUILD_NUMBER"]
313314
returnany(os.environ.get(var)forvarinenv_vars)

‎tox.ini‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ commands =
171171
setenv =
172172
# We don't want this warning to reach regen output.
173173
PYTHONWARNDEFAULTENCODING=
174+
# Remove CI markers: pytest auto-detects those and uses more verbose output, which is undesirable
175+
# for the example documentation.
176+
CI=
177+
BUILD_NUMBER=
174178

175179
[testenv:plugins]
176180
description =

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp