From b42efda807a012dda138d7fc784431479520be5d2438ade2b5a4f72de2b66cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 4 Jun 2019 13:53:49 +0000 Subject: [PATCH] - Skip randomly failing test (only in OBS) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-black?expand=0&rev=10 --- python-black.changes | 5 +++++ python-black.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-black.changes b/python-black.changes index 40893ac..1407e47 100644 --- a/python-black.changes +++ b/python-black.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 4 13:53:31 UTC 2019 - Tomáš Chvátal + +- Skip randomly failing test (only in OBS) + ------------------------------------------------------------------- Thu Mar 21 15:44:47 UTC 2019 - Tomáš Chvátal diff --git a/python-black.spec b/python-black.spec index 8bcaf4e..2b04a13 100644 --- a/python-black.spec +++ b/python-black.spec @@ -31,6 +31,7 @@ BuildRequires: %{python_module appdirs} BuildRequires: %{python_module attrs >= 18.1.0} BuildRequires: %{python_module base >= 3.6} BuildRequires: %{python_module click >= 6.5} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module toml >= 0.9.4} BuildRequires: fdupes @@ -65,10 +66,9 @@ rm -rf %{pypi_name}.egg-info %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{python_version_nodots} >= 37 %check -%python_exec setup.py test -%endif +# test_expression_diff - sometimes fails on async timing in OBS +%pytest -k 'not test_expression_diff' %files %{python_files} %doc README.md