FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-45629: Improve test.support.skip_if_buildbot by gpshead · Pull Request #31094 · python/cpython · GitHub

/ cpython Public

bpo-45629: Improve test.support.skip_if_buildbot - #31094

Merged
gpshead merged 1 commit into
python:mainfrom
gpshead:fix_skip_if_buildbot
Feb 3, 2022
Merged

bpo-45629: Improve test.support.skip_if_buildbot#31094
gpshead merged 1 commit into
python:mainfrom
gpshead:fix_skip_if_buildbot

Conversation

gpshead commented Feb 3, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

It was added as part of #29222 to avoid running freeze tool tests on the
buildbots but the logic was wrong so it did not skip tests on typical posix
setup buildbots where the worker is launched from cron via an @reboot task and
thus have no USER environment variable. This uses the canonical
getpass.getuser() API rather than rolling its own attempt.

https://bugs.python.org/issue45629

It was added as part of python#29222 to avoid running freeze tool tests on the
buildbots but the logic was wrong so it did not skip tests on typical posix
setup buildbots where the worker is launched from cron via an @reboot task and
thus have no USER environment variable.  This uses the canonical
`getpass.getuser()` API rather than rolling its own attempt.
gpshead added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir skip news labels Feb 3, 2022

kumaraditya303 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

gpshead merged commit 8726067 into python:main Feb 3, 2022
gpshead deleted the fix_skip_if_buildbot branch February 3, 2022 05:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL