Matej Cepl
060513c7e1
header injection due to unquoted newlines (bsc#1228780, CVE-2024-6923). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=136
16 lines
582 B
Diff
16 lines
582 B
Diff
---
|
|
Lib/test/support/__init__.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/Lib/test/support/__init__.py
|
|
+++ b/Lib/test/support/__init__.py
|
|
@@ -384,7 +384,7 @@ def skip_if_buildbot(reason=None):
|
|
if not reason:
|
|
reason = 'not suitable for buildbots'
|
|
try:
|
|
- isbuildbot = getpass.getuser().lower() == 'buildbot'
|
|
+ isbuildbot = getpass.getuser().lower() in ['buildbot', 'abuild']
|
|
except (KeyError, EnvironmentError) as err:
|
|
warnings.warn(f'getpass.getuser() failed {err}.', RuntimeWarning)
|
|
isbuildbot = False
|