From 8b2414146a6b025102453eecb3ce3b23e8d048a255913fcf6d957e31b9fb1325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 6 May 2019 13:41:12 +0000 Subject: [PATCH] Accepting request 701106 from home:pgajdos please really carefully review OBS-URL: https://build.opensuse.org/request/show/701106 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vdirsyncer?expand=0&rev=11 --- python-vdirsyncer-fix-tests.patch | 53 +++++++++++++++++++++++++------ python-vdirsyncer.changes | 7 ++++ python-vdirsyncer.spec | 1 + 3 files changed, 51 insertions(+), 10 deletions(-) diff --git a/python-vdirsyncer-fix-tests.patch b/python-vdirsyncer-fix-tests.patch index 4c646f1..c23443f 100644 --- a/python-vdirsyncer-fix-tests.patch +++ b/python-vdirsyncer-fix-tests.patch @@ -1,16 +1,49 @@ -diff --git a/tests/conftest.py b/tests/conftest.py -index ff774ce1..6272d42d 100644 ---- a/tests/conftest.py -+++ b/tests/conftest.py -@@ -27,7 +27,10 @@ def benchmark(): +Index: vdirsyncer-0.16.7/tests/conftest.py +=================================================================== +--- vdirsyncer-0.16.7.orig/tests/conftest.py 2018-02-16 19:48:40.000000000 +0100 ++++ vdirsyncer-0.16.7/tests/conftest.py 2019-05-06 15:24:28.233806166 +0200 +@@ -7,7 +7,7 @@ import os + + import click_log + +-from hypothesis import HealthCheck, Verbosity, settings ++from hypothesis import Verbosity, settings + + import pytest + +@@ -27,15 +27,12 @@ else: del pytest_benchmark -settings.suppress_health_check = [HealthCheck.too_slow] -+settings.register_profile("dev", settings( -+ suppress_health_check=[HealthCheck.too_slow] -+)) -+settings.load_profile("dev") - +- settings.register_profile("ci", settings( max_examples=1000, + verbosity=Verbosity.verbose, + )) + settings.register_profile("deterministic", settings( + derandomize=True, +- perform_health_check=False + )) + + if os.environ.get('DETERMINISTIC_TESTS', 'false').lower() == 'true': +Index: vdirsyncer-0.16.7/tests/unit/test_repair.py +=================================================================== +--- vdirsyncer-0.16.7.orig/tests/unit/test_repair.py 2018-07-19 21:07:31.000000000 +0200 ++++ vdirsyncer-0.16.7/tests/unit/test_repair.py 2019-05-06 15:24:59.781963794 +0200 +@@ -11,7 +11,6 @@ from vdirsyncer.vobject import Item + + + @given(uid=uid_strategy) +-@settings(perform_health_check=False) # Using the random module for UIDs + def test_repair_uids(uid): + s = MemoryStorage() + s.items = { +@@ -35,7 +34,6 @@ def test_repair_uids(uid): + + + @given(uid=uid_strategy.filter(lambda x: not href_safe(x))) +-@settings(perform_health_check=False) # Using the random module for UIDs + def test_repair_unsafe_uids(uid): + s = MemoryStorage() + item = Item(u'BEGIN:VCARD\nUID:{}\nEND:VCARD'.format(uid)) diff --git a/python-vdirsyncer.changes b/python-vdirsyncer.changes index 605dcdd..b023558 100644 --- a/python-vdirsyncer.changes +++ b/python-vdirsyncer.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 6 13:36:29 UTC 2019 - pgajdos@suse.com + +- fix tests again https://github.com/pimutils/vdirsyncer/issues/793 +- modified patches + % python-vdirsyncer-fix-tests.patch (extended) + ------------------------------------------------------------------- Sat Apr 6 22:18:22 UTC 2019 - Jan Engelhardt diff --git a/python-vdirsyncer.spec b/python-vdirsyncer.spec index e8c46cc..21338a4 100644 --- a/python-vdirsyncer.spec +++ b/python-vdirsyncer.spec @@ -29,6 +29,7 @@ Source0: https://files.pythonhosted.org/packages/source/v/vdirsyncer/vdir Source1: vdirsyncer.service Source2: vdirsyncer.timer # https://github.com/pimutils/vdirsyncer/pull/779 +# https://github.com/pimutils/vdirsyncer/issues/793 Patch0: python-vdirsyncer-fix-tests.patch BuildRequires: %{python_module setuptools_scm} BuildRequires: fdupes