From 134b93bf47d974fa55b181ec9d66d4e2ab7f8c92ce8145eae8e5869c37f9fde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 18 Mar 2020 07:51:24 +0000 Subject: [PATCH] Accepting request 786087 from home:frispete:OpenStack:Common - add more testing requirements - disable a test, that relies on asyncio.run for py < 3.7 OBS-URL: https://build.opensuse.org/request/show/786087 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yappi?expand=0&rev=7 --- python-yappi.changes | 6 ++++++ python-yappi.spec | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/python-yappi.changes b/python-yappi.changes index b1dfb2f..305e9bd 100644 --- a/python-yappi.changes +++ b/python-yappi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 17 23:52:17 UTC 2020 - Hans-Peter Jansen + +- add more testing requirements +- disable a test, that relies on asyncio.run for py < 3.7 + ------------------------------------------------------------------- Sun Mar 15 09:13:20 UTC 2020 - Tomáš Chvátal diff --git a/python-yappi.spec b/python-yappi.spec index af1ced4..6b5f3c0 100644 --- a/python-yappi.spec +++ b/python-yappi.spec @@ -25,8 +25,10 @@ Summary: Yet Another Python Profiler License: MIT URL: https://github.com/sumerc/yappi Source: https://files.pythonhosted.org/packages/source/y/yappi/yappi-%{version}.tar.gz +BuildRequires: %{python_module contextvars} BuildRequires: %{python_module devel} BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -52,7 +54,12 @@ export CFLAGS="%{optflags}" export PYTHONPATH="tests/" export PATH="$PATH:%{buildroot}/%{_bindir}" # Skip two flaky tests -%pytest_arch -k 'not (test_basic_old_style or test_basic)' +skip_tests="not test_basic_old_style and not test_basic" +%if %{python3_version_nodots} < 37 + # this test relies on asyncio.run method + skip_tests="$skip_tests and not test_asyncio_context_vars" +%endif +%pytest_arch -k "$skip_tests" %files %{python_files} %doc README.md