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:
Miro Hrončok 2021-01-20 11:26:12 +01:00
parent 76da6fc8a7
commit eb7b60b3ca

View File

@ -1,6 +1,6 @@
Name: pytest
Version: 6.0.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Simple powerful testing with Python
License: MIT
URL: https://pytest.org
@ -132,6 +132,11 @@ find %{buildroot}%{python3_sitelib} \
%if %{with tests}
%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
%pytest testing %{?with_timeout:--timeout=30}
%endif
@ -155,6 +160,9 @@ find %{buildroot}%{python3_sitelib} \
%{python3_sitelib}/pytest/
%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
- Update to 6.0.2.