Workaround the bracketed-paste mode breaking tests with Bash 5.1+
See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/O3YFTIUSSP2M6OIZYOXWX5GAVF6CZJN2/
This commit is contained in:
parent
76da6fc8a7
commit
eb7b60b3ca
10
pytest.spec
10
pytest.spec
@ -1,6 +1,6 @@
|
|||||||
Name: pytest
|
Name: pytest
|
||||||
Version: 6.0.2
|
Version: 6.0.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Simple powerful testing with Python
|
Summary: Simple powerful testing with Python
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pytest.org
|
URL: https://pytest.org
|
||||||
@ -132,6 +132,11 @@ find %{buildroot}%{python3_sitelib} \
|
|||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
|
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1914843
|
||||||
|
# upstream: https://github.com/pytest-dev/pytest/issues/8256
|
||||||
|
echo "set enable-bracketed-paste off" > .inputrc
|
||||||
|
export INPUTRC=$PWD/.inputrc
|
||||||
|
|
||||||
%global __pytest %{buildroot}%{_bindir}/pytest
|
%global __pytest %{buildroot}%{_bindir}/pytest
|
||||||
%pytest testing %{?with_timeout:--timeout=30}
|
%pytest testing %{?with_timeout:--timeout=30}
|
||||||
%endif
|
%endif
|
||||||
@ -155,6 +160,9 @@ find %{buildroot}%{python3_sitelib} \
|
|||||||
%{python3_sitelib}/pytest/
|
%{python3_sitelib}/pytest/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 20 2021 Miro Hrončok <mhroncok@redhat.com> - 6.0.2-2
|
||||||
|
- Workaround the bracketed-paste mode breaking tests with Bash 5.1+
|
||||||
|
|
||||||
* Sat Sep 12 2020 Thomas Moschny <thomas.moschny@gmx.de> - 6.0.2-1
|
* Sat Sep 12 2020 Thomas Moschny <thomas.moschny@gmx.de> - 6.0.2-1
|
||||||
- Update to 6.0.2.
|
- Update to 6.0.2.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user