From e71e638e14d24004ddff16c94052449c3087181755553b57f731201115822117 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 2 May 2023 23:12:23 +0000 Subject: [PATCH] - Add skip-test_freeze_simple_script.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=61 --- python311.changes | 1 + python311.spec | 4 ++++ skip-test_freeze_simple_script.patch | 15 +++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 skip-test_freeze_simple_script.patch diff --git a/python311.changes b/python311.changes index f7e2268..98fb888 100644 --- a/python311.changes +++ b/python311.changes @@ -3,6 +3,7 @@ Sun Apr 30 18:13:16 UTC 2023 - Matej Cepl - Why in the world we download from HTTP? - Add 103213-fetch-CONFIG_ARGS.patch (gh#python/cpython#103053). +- Add skip-test_freeze_simple_script.patch ------------------------------------------------------------------- Thu Apr 27 21:57:15 UTC 2023 - Matej Cepl diff --git a/python311.spec b/python311.spec index 457fcec..a4b2846 100644 --- a/python311.spec +++ b/python311.spec @@ -173,6 +173,9 @@ Patch37: CVE-2007-4559-filter-tarfile_extractall.patch # PATCH-FIX-UPSTREAM 103213-fetch-CONFIG_ARGS.patch gh#python/cpython#103053 mcepl@suse.com # Fetch CONFIG_ARGS from original python instance Patch38: 103213-fetch-CONFIG_ARGS.patch +# PATCH-FIX-UPSTREAM skip-test_freeze_simple_script.patch gh#python/cpython#103053 mcepl@suse.com +# Skip test_freeze_simple_script +Patch39: skip-test_freeze_simple_script.patch BuildRequires: autoconf-archive BuildRequires: automake BuildRequires: fdupes @@ -446,6 +449,7 @@ other applications. %patch36 -p1 %patch37 -p1 %patch38 -p1 +%patch39 -p1 # drop Autoconf version requirement sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac diff --git a/skip-test_freeze_simple_script.patch b/skip-test_freeze_simple_script.patch new file mode 100644 index 0000000..f043185 --- /dev/null +++ b/skip-test_freeze_simple_script.patch @@ -0,0 +1,15 @@ +--- + 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 +@@ -388,7 +388,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() == 'abuild' + except (KeyError, EnvironmentError) as err: + warnings.warn(f'getpass.getuser() failed {err}.', RuntimeWarning) + isbuildbot = False