Hello community,

here is the log from the commit of package python-pexpect for openSUSE:Factory 
checked in at 2018-09-18 11:36:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pexpect (Old)
 and      /work/SRC/openSUSE:Factory/.python-pexpect.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pexpect"

Tue Sep 18 11:36:26 2018 rev:26 rq:634979 version:4.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pexpect/python-pexpect.changes    
2018-06-29 22:34:06.290121342 +0200
+++ /work/SRC/openSUSE:Factory/.python-pexpect.new/python-pexpect.changes       
2018-09-18 11:36:36.532342064 +0200
@@ -1,0 +2,5 @@
+Tue Sep  4 13:35:41 UTC 2018 - [email protected]
+
+- Add fix-test.patch to make tests pass with SLE-12-SP4's openssl (bsc#1107105)
+
+-------------------------------------------------------------------

New:
----
  fix-test.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pexpect.spec ++++++
--- /var/tmp/diff_new_pack.RFG1mP/_old  2018-09-18 11:36:38.760339696 +0200
+++ /var/tmp/diff_new_pack.RFG1mP/_new  2018-09-18 11:36:38.764339691 +0200
@@ -25,6 +25,7 @@
 Group:          Development/Libraries/Python
 URL:            http://pexpect.readthedocs.org/en/latest/
 Source:         
https://files.pythonhosted.org/packages/source/p/pexpect/pexpect-%{version}.tar.gz
+Patch0:         fix-test.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module ptyprocess}
 BuildRequires:  %{python_module pytest}
@@ -44,6 +45,7 @@
 
 %prep
 %setup -q -n pexpect-%{version}
+%patch0 -p1
 
 # Fix wrong-script-interpreter
 find examples -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python||" 
{} \;

++++++ fix-test.patch ++++++
https://github.com/pexpect/pexpect/pull/527
commit 5349569bcad4ab1685c9f2ec2a2c77a69cde4e48
Author: Bernhard M. Wiedemann <[email protected]>
Date:   Tue Sep 4 13:57:43 2018 +0200

    tests: ignore stderr from openssl
    
    Without this patch, the test failed with openssl-1.0.2p
    because 502 lines were captured with the extra lines being at the end:
    140510355240592:error:02012020:system library:fflush:Broken 
pipe:bss_file.c:434:fflush()
    140510355240592:error:20074002:BIO routines:FILE_CTRL:system 
lib:bss_file.c:436:
    
    neither openssl-1.0.2j nor 1.1.0h needed this patch.

diff --git a/tests/test_expect.py b/tests/test_expect.py
index 795518a..2c74744 100755
--- a/tests/test_expect.py
+++ b/tests/test_expect.py
@@ -411,7 +411,7 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase):
     def test_before_across_chunks(self):
         # https://github.com/pexpect/pexpect/issues/478
         child = pexpect.spawn(
-            '''/bin/bash -c "openssl rand -base64 {} | head -500 | nl 
--number-format=rz --number-width=5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 
1024 * 2),
+            '''/bin/bash -c "openssl rand -base64 {} 2>/dev/null | head -500 | 
nl --number-format=rz --number-width=5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 
* 1024 * 2),
             searchwindowsize=128
         )
         child.expect(['PATTERN'])

Reply via email to