Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Feb 3, 2022

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 gpshead added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir skip news labels Feb 3, 2022
Copy link
Contributor

@kumaraditya303 kumaraditya303 left a comment

Choose a reason for hiding this comment

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

LGTM

@gpshead gpshead merged commit 8726067 into python:main Feb 3, 2022
@gpshead gpshead deleted the fix_skip_if_buildbot branch February 3, 2022 05:36
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