From 9e71402ca2ada2978348b5eb4a954a345f3443e74f792f6519ee9665cf593059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 11 Mar 2019 11:22:35 +0000 Subject: [PATCH] Accepting request 683762 from home:jayvdb:py-backports - Activate test suite OBS-URL: https://build.opensuse.org/request/show/683762 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-future?expand=0&rev=18 --- python-future.changes | 5 +++++ python-future.spec | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/python-future.changes b/python-future.changes index 41783e6..6eff196 100644 --- a/python-future.changes +++ b/python-future.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 11 11:15:09 UTC 2019 - John Vandenberg + +- Activate test suite + ------------------------------------------------------------------- Tue Dec 4 12:48:20 UTC 2018 - Matej Cepl diff --git a/python-future.spec b/python-future.spec index 0e14b2f..184c393 100644 --- a/python-future.spec +++ b/python-future.spec @@ -27,6 +27,8 @@ Url: https://python-future.org Source0: https://files.pythonhosted.org/packages/source/f/future/future-%{version}.tar.gz Source100: python-future-rpmlintrc BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pytest} +BuildRequires: python3-dbm BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives @@ -61,6 +63,13 @@ sed -i -e '/^#!\//, 1d' src/future/backports/test/pystone.py %preun %python_uninstall_alternative futurize +%check +# test_moves_urllib_request_http or test_urllib_request_http require internet +# test_geturl or test_main fail only on Leap 42.3 and SLE 12 SP4 +%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest \ + -k 'not (test_moves_urllib_request_http or test_urllib_request_http or test_geturl or test_main)' +} + %files %{python_files} %doc README.rst %license LICENSE.txt