Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pexpect for openSUSE:Factory 
checked in at 2023-08-13 19:17:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pexpect (Old)
 and      /work/SRC/openSUSE:Factory/.python-pexpect.new.11712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pexpect"

Sun Aug 13 19:17:38 2023 rev:43 rq:1103603 version:4.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pexpect/python-pexpect.changes    
2023-08-02 16:47:59.580455820 +0200
+++ /work/SRC/openSUSE:Factory/.python-pexpect.new.11712/python-pexpect.changes 
2023-08-13 19:17:40.924000792 +0200
@@ -1,0 +2,6 @@
+Thu Aug 10 12:27:03 UTC 2023 - Matthias Fehring <buschman...@opensuse.org>
+
+- Fix failing test when no alias in bash is defined
+  * add fix-fail-no-alias.patch
+
+-------------------------------------------------------------------

New:
----
  fix-fail-no-alias.patch

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

Other differences:
------------------
++++++ python-pexpect.spec ++++++
--- /var/tmp/diff_new_pack.QACTEn/_old  2023-08-13 19:17:41.592005066 +0200
+++ /var/tmp/diff_new_pack.QACTEn/_new  2023-08-13 19:17:41.596005091 +0200
@@ -28,6 +28,7 @@
 # Newer asyncio / python 3.11 support
 Patch1:         https://github.com/pexpect/pexpect/pull/715.patch
 Patch2:         https://github.com/pexpect/pexpect/pull/684.patch
+Patch3:         fix-fail-no-alias.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module ptyprocess}
 BuildRequires:  %{python_module pytest}

++++++ fix-fail-no-alias.patch ++++++
>From 000a8684bd109c3f9c9b5fabd95add4743b7f45a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20E=C3=9Fer?= <s...@freebsd.org>
Date: Wed, 22 Sep 2021 17:48:07 +0200
Subject: [PATCH] Do not fail if no alias has been defined
Upstream: merged 
(https://github.com/pexpect/pexpect/pull/698/commits/000a8684bd109c3f9c9b5fabd95add4743b7f45a)

There is no output if no alias has been defined and the test fails in
that case. Adding an alias definition makes the alias command return
at least that just added entry.
---
 tests/test_replwrap.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/test_replwrap.py b/tests/test_replwrap.py
index 5e50ea28..73c82e84 100644
--- a/tests/test_replwrap.py
+++ b/tests/test_replwrap.py
@@ -25,7 +25,7 @@ def tearDown(self):

     def test_bash(self):
         bash = replwrap.bash()
-        res = bash.run_command("alias")
+        res = bash.run_command("alias xyzzy=true; alias")
         assert 'alias' in res, res

         try:
@@ -92,7 +92,9 @@ def test_existing_spawn(self):
                                     "PS1='{0}' PS2='{1}' "
                                     "PROMPT_COMMAND=''")

+        print(repl)
         res = repl.run_command("echo $HOME")
+        print(res)
         assert res.startswith('/'), res

     def test_python(self):

Reply via email to