diff --git a/paramiko-test_extend_timeout.patch b/paramiko-test_extend_timeout.patch new file mode 100644 index 0000000..25435aa --- /dev/null +++ b/paramiko-test_extend_timeout.patch @@ -0,0 +1,11 @@ +--- paramiko-2.4.1/tests/test_buffered_pipe.py 2018/03/15 17:40:29 1.1 ++++ paramiko-2.4.1/tests/test_buffered_pipe.py 2018/03/15 17:40:36 +@@ -69,7 +69,7 @@ + self.assertTrue(False) + except PipeTimeout: + pass +- self.assertEqual(b'b', p.read(1, 1.0)) ++ self.assertEqual(b'b', p.read(1, 3.0)) + self.assertEqual(b'', p.read(1)) + + def test_3_close_while_reading(self): diff --git a/python-paramiko.changes b/python-paramiko.changes index 544f379..538d75d 100644 --- a/python-paramiko.changes +++ b/python-paramiko.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 15 18:38:22 CET 2018 - ro@suse.de + +- add paramiko-test_extend_timeout.patch (bsc#1085529) + extend timeout in testsuite to pass on ppc64le + ------------------------------------------------------------------- Thu Mar 15 07:10:09 UTC 2018 - tbechtold@suse.com diff --git a/python-paramiko.spec b/python-paramiko.spec index 02edc1b..7790578 100644 --- a/python-paramiko.spec +++ b/python-paramiko.spec @@ -29,6 +29,7 @@ Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/p/paramiko/paramiko-%{version}.tar.gz # certificates needed by testsuite Source1: cert_support.tar.gz +Patch0: paramiko-test_extend_timeout.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module PyNaCl >= 1.0.1} BuildRequires: %{python_module bcrypt >= 3.1.3} @@ -72,6 +73,7 @@ This package contains the documentation. %prep %setup -q -n paramiko-%{version} +%patch0 -p1 # Fix non-executable script rpmlint issue: find demos -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \; tar xvzf %{SOURCE1} -C tests/