From e5ef1a3042e7584d516da8c22eacf5db7a9f923dc1ff4d6edda027049ef2bef0 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 3 Jan 2021 14:27:40 +0000 Subject: [PATCH] - Switch off timeout on failing test OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textdistance?expand=0&rev=3 --- extend-timeout.patch | 10 ++++++++++ python-textdistance.changes | 5 +++++ python-textdistance.spec | 8 ++++++-- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 extend-timeout.patch diff --git a/extend-timeout.patch b/extend-timeout.patch new file mode 100644 index 0000000..fe35f97 --- /dev/null +++ b/extend-timeout.patch @@ -0,0 +1,10 @@ +--- a/tests/test_compression/test_common.py ++++ b/tests/test_compression/test_common.py +@@ -32,6 +32,7 @@ def test_monotonicity(alg): + assert same <= similar <= diffirent + + ++@hypothesis.settings(deadline=None) + @pytest.mark.parametrize('alg', ALGS) + @hypothesis.given( + left=hypothesis.strategies.text(), diff --git a/python-textdistance.changes b/python-textdistance.changes index a0299e9..8347b25 100644 --- a/python-textdistance.changes +++ b/python-textdistance.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jan 3 14:27:00 UTC 2021 - Matej Cepl + +- Switch off timeout on failing test + ------------------------------------------------------------------- Sat Dec 19 22:06:48 UTC 2020 - Benjamin Greiner diff --git a/python-textdistance.spec b/python-textdistance.spec index 2edacbf..96509f6 100644 --- a/python-textdistance.spec +++ b/python-textdistance.spec @@ -1,7 +1,7 @@ # # spec file for package python-textdistance # -# 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 @@ -25,6 +25,9 @@ Summary: Compute distance between the two texts License: MIT URL: https://github.com/life4/textdistance Source: https://files.pythonhosted.org/packages/source/t/textdistance/textdistance-%{version}.tar.gz +# PATCH-FIX-OPENSUSE extend-timeout.patch bsc#[0-9]+ mcepl@suse.com +# extend timetout for failing test +Patch0: extend-timeout.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -48,7 +51,8 @@ Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage. %prep -%setup -q -n textdistance-%{version} +%autosetup -p1 -n textdistance-%{version} + chmod a-x README.md %build