From eb7b60b3ca095aaef7536a7e93958231d532929b Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jan 20 2021 10:26:12 +0000 Subject: Workaround the bracketed-paste mode breaking tests with Bash 5.1+ See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/O3YFTIUSSP2M6OIZYOXWX5GAVF6CZJN2/ --- diff --git a/pytest.spec b/pytest.spec index 7f033f1..2de91d1 100644 --- a/pytest.spec +++ b/pytest.spec @@ -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 - 6.0.2-2 +- Workaround the bracketed-paste mode breaking tests with Bash 5.1+ + * Sat Sep 12 2020 Thomas Moschny - 6.0.2-1 - Update to 6.0.2.