Hello community, here is the log from the commit of package python-natsort for openSUSE:Factory checked in at 2019-12-27 13:49:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-natsort (Old) and /work/SRC/openSUSE:Factory/.python-natsort.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-natsort" Fri Dec 27 13:49:09 2019 rev:11 rq:759229 version:6.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-natsort/python-natsort.changes 2019-11-27 13:53:19.780370718 +0100 +++ /work/SRC/openSUSE:Factory/.python-natsort.new.6675/python-natsort.changes 2019-12-27 13:49:10.888480249 +0100 @@ -1,0 +2,8 @@ +Sun Dec 22 23:52:46 CET 2019 - Matej Cepl <mc...@suse.com> + +- Exclude failing tests due to gh#SethMMorton/natsort#107 +- Add too_slow.patch which switches off suppressing + hypothesis.HealthCheck.too_slow health check + (gh#SethMMorton/natsort#108). + +------------------------------------------------------------------- New: ---- too_slow.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-natsort.spec ++++++ --- /var/tmp/diff_new_pack.uXnN1c/_old 2019-12-27 13:49:12.528481413 +0100 +++ /var/tmp/diff_new_pack.uXnN1c/_new 2019-12-27 13:49:12.532481416 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-natsort # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,9 @@ License: MIT URL: https://github.com/SethMMorton/natsort Source: https://files.pythonhosted.org/packages/source/n/natsort/natsort-%{version}.tar.gz +# PATCH-FIX-UPSTREAM too_slow.patch gh#SethMMorton/natsort#108 mc...@suse.com +# suppressing hypothesis.HealthCheck.too_slow is too optimistic +Patch0: too_slow.patch BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest-mock} @@ -47,6 +50,7 @@ %prep %setup -q -n natsort-%{version} +%autopatch -p1 %build %python_build @@ -61,14 +65,13 @@ %check export LANG=en_US.UTF8 -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -pytest-%{$python_bin_suffix} -} +# exclusions due to gh#SethMMorton/natsort#107 +%pytest -k 'not test_natsort_keygen_with_locale' %files %{python_files} %license LICENSE %doc README.rst CHANGELOG.md -%{_mandir}/man1/natsort.1%{ext_man} +%{_mandir}/man1/natsort.1%{?ext_man} %{_bindir}/natsort %{python_sitelib}/natsort* ++++++ too_slow.patch ++++++ --- a/tests/conftest.py +++ b/tests/conftest.py @@ -4,19 +4,9 @@ Fixtures for pytest. import locale -import hypothesis import pytest -# This disables the "too slow" hypothesis heath check globally. -# For some reason it thinks that the text/binary generation is too -# slow then causes the tests to fail. -hypothesis.settings.register_profile( - "slow-tests", - suppress_health_check=[hypothesis.HealthCheck.too_slow], -) - - def load_locale(x): """Convenience to load a locale, trying ISO8859-1 first.""" try: