Accepting request 898147 from home:mcepl:branches:devel:languages:python:Factory

- Revert previous skip over test_capi
- Add skip-test_pyobject_freed_is_freed.patch to skip failing
  test on SLE-15.

OBS-URL: https://build.opensuse.org/request/show/898147
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=71
This commit is contained in:
Matej Cepl 2021-06-07 14:28:29 +00:00 committed by Git OBS Bridge
parent d412267ee4
commit 4ae49af4ba
3 changed files with 27 additions and 7 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Jun 5 21:21:38 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Revert previous skip over test_capi
- Add skip-test_pyobject_freed_is_freed.patch to skip failing
test on SLE-15.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 4 21:36:30 UTC 2021 - Dirk Müller <dmueller@suse.com> Fri Jun 4 21:36:30 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@ -142,6 +142,9 @@ Patch32: sphinx-update-removed-function.patch
# PATCH-FIX-SLE no-skipif-doctests.patch jsc#SLE-13738 mcepl@suse.com # PATCH-FIX-SLE no-skipif-doctests.patch jsc#SLE-13738 mcepl@suse.com
# SLE-15 version of Sphinx doesn't know about skipif directive in doctests. # SLE-15 version of Sphinx doesn't know about skipif directive in doctests.
Patch33: no-skipif-doctests.patch Patch33: no-skipif-doctests.patch
# PATCH-FIX-SLE skip-test_pyobject_freed_is_freed.patch mcepl@suse.com
# skip a test failing on SLE-15
Patch34: skip-test_pyobject_freed_is_freed.patch
BuildRequires: autoconf-archive BuildRequires: autoconf-archive
BuildRequires: automake BuildRequires: automake
BuildRequires: fdupes BuildRequires: fdupes
@ -162,8 +165,6 @@ BuildRequires: pkgconfig(libnsl)
BuildRequires: pkgconfig(libtirpc) BuildRequires: pkgconfig(libtirpc)
%endif %endif
%if %{with doc} %if %{with doc}
# Here we just run sphinx and we can use generic one, we don't need
# the flavor variant
BuildRequires: python3-Sphinx BuildRequires: python3-Sphinx
%if 0%{?suse_version} >= 1500 %if 0%{?suse_version} >= 1500
BuildRequires: python3-python-docs-theme BuildRequires: python3-python-docs-theme
@ -387,6 +388,9 @@ other applications.
%if 0%{?suse_version} <= 1500 %if 0%{?suse_version} <= 1500
%patch33 -p1 %patch33 -p1
%endif %endif
%if 0%{?sle_version} && 0%{?sle_version} <= 150300
%patch34 -p1
%endif
# drop Autoconf version requirement # drop Autoconf version requirement
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
@ -498,11 +502,6 @@ EXCLUDE="$EXCLUDE test_multiprocessing_forkserver test_multiprocessing_spawn tes
# done have any such interface breaking the uuid module. # done have any such interface breaking the uuid module.
EXCLUDE="$EXCLUDE test_uuid" EXCLUDE="$EXCLUDE test_uuid"
# EXCLUDE test_capi bpo#37169 for Leap <= 15.3
%if 0%{?sle_version} <= 150300
EXCLUDE="$EXCLUDE test_capi"
%endif
# Limit virtual memory to avoid spurious failures # Limit virtual memory to avoid spurious failures
if test $(ulimit -v) = unlimited || test $(ulimit -v) -gt 10000000; then if test $(ulimit -v) = unlimited || test $(ulimit -v) -gt 10000000; then
ulimit -v 10000000 || : ulimit -v 10000000 || :

View File

@ -0,0 +1,14 @@
---
Lib/test/test_capi.py | 1 +
1 file changed, 1 insertion(+)
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -794,6 +794,7 @@ class PyMemDebugTests(unittest.TestCase)
def test_pyobject_forbidden_bytes_is_freed(self):
self.check_pyobject_is_freed('check_pyobject_forbidden_bytes_is_freed')
+ @unittest.skip('Failing on Leap 15.*')
def test_pyobject_freed_is_freed(self):
self.check_pyobject_is_freed('check_pyobject_freed_is_freed')