]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45629: Improve test.support.skip_if_buildbot (GH-31094)
authorGregory P. Smith <greg@krypto.org>
Thu, 3 Feb 2022 05:36:16 +0000 (21:36 -0800)
committerGitHub <noreply@github.com>
Thu, 3 Feb 2022 05:36:16 +0000 (21:36 -0800)
commit8726067ace98a27557e9fdf1a8e1c509c37cfcfc
tree374cf5fbe238721cfb66c2824575fd505ed2818c
parent51a95be1d035a717ab29e98056b8831a98e61125
bpo-45629: Improve test.support.skip_if_buildbot (GH-31094)

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.
Lib/test/support/__init__.py