From 14c536a86b7641a3fb572933c5436d5e5735fe56fd223230c91043fd79cfe3b1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 16 May 2021 14:08:05 +0000 Subject: [PATCH] Accepting request 893468 from home:bnavigator:branches:devel:languages:python - Skip a failing test on Python 3.9.5: request url with tabs gh#pipermerriam/flex#234 - Skip python2 because it fails on Leap: factory_boy does not support Python 2 anymore OBS-URL: https://build.opensuse.org/request/show/893468 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flex?expand=0&rev=8 --- python-flex.changes | 8 ++++++++ python-flex.spec | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/python-flex.changes b/python-flex.changes index 07e025e..ef36f79 100644 --- a/python-flex.changes +++ b/python-flex.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun May 16 13:32:39 UTC 2021 - Ben Greiner + +- Skip a failing test on Python 3.9.5: request url with tabs + gh#pipermerriam/flex#234 +- Skip python2 because it fails on Leap: factory_boy does not + support Python 2 anymore + ------------------------------------------------------------------- Thu Sep 17 06:45:02 UTC 2020 - Dirk Mueller diff --git a/python-flex.spec b/python-flex.spec index bffedc5..860748f 100644 --- a/python-flex.spec +++ b/python-flex.spec @@ -1,7 +1,7 @@ # # spec file for package python-flex # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,8 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Python 2 is not supported by factory_boy anymore +%define skip_python2 1 Name: python-flex Version: 6.14.1 Release: 0 @@ -50,7 +52,7 @@ Requires: python-six >= 1.7.3 Requires: python-strict-rfc3339 >= 0.7 Requires: python-validate_email >= 1.2 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages @@ -69,7 +71,9 @@ Validation tooling for Swagger 2.0 specifications. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# https://github.com/pipermerriam/flex/issues/234 +python39_donttest=" or (test_request_parameter_array_extraction and tsv)" +%pytest -k "not (donttestdummyprefix ${$python_donttest})" %post %python_install_alternative swagger-flex