Summary: Run each test in a forked subprocess
Summary(pl.UTF-8): Uruchamianie każdego testu w oddzielnym procesie
Name: python-pytest-forked
-Version: 0.2
-Release: 2
+Version: 1.1.3
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/pytest-forked/
Source0: https://files.pythonhosted.org/packages/source/p/pytest-forked/pytest-forked-%{version}.tar.gz
-# Source0-md5: 133167c9c56c9121c80852f9cd702140
+# Source0-md5: 7d507e84bf9d59182fd528f48fcae8cc
URL: https://github.com/pytest-dev/pytest-forked
%if %{with python2}
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
BuildRequires: python-setuptools_scm
%if %{with tests}
-BuildRequires: python-pytest >= 2.6.0
+BuildRequires: python-pytest >= 3.1.0
%endif
%endif
%if %{with python3}
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
%if %{with tests}
-BuildRequires: python3-pytest >= 2.6.0
+BuildRequires: python3-pytest >= 3.1.0
%endif
%endif
BuildRequires: rpm-pythonprov
%prep
%setup -q -n pytest-forked-%{version}
-# kill precompiled objects
-%{__rm} -r testing/*.pyc testing/__pycache__
-
%build
%if %{with python2}
%py_build
%if %{with tests}
+# pytest-flaky plugin breaks test_functional_boxed_capturing
PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest testing
+%{__python} -m pytest -p no:flaky testing
%endif
%endif
%if %{with tests}
PYTHONPATH=$(pwd)/src \
-%{__python3} -m pytest testing
+%{__python3} -m pytest -p no:flaky testing
%endif
%endif