Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-argh for openSUSE:Factory 
checked in at 2021-09-22 22:12:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-argh (Old)
 and      /work/SRC/openSUSE:Factory/.python-argh.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-argh"

Wed Sep 22 22:12:52 2021 rev:17 rq:920718 version:0.26.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-argh/python-argh.changes  2021-05-18 
18:27:28.386694389 +0200
+++ /work/SRC/openSUSE:Factory/.python-argh.new.1899/python-argh.changes        
2021-09-22 22:13:02.296327072 +0200
@@ -1,0 +2,6 @@
+Wed Sep 22 04:41:45 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch support-py39.patch:
+  * Deal with Python 3.9.x changes in argparse.
+
+-------------------------------------------------------------------

New:
----
  support-py39.patch

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

Other differences:
------------------
++++++ python-argh.spec ++++++
--- /var/tmp/diff_new_pack.FtYqyJ/_old  2021-09-22 22:13:02.856327538 +0200
+++ /var/tmp/diff_new_pack.FtYqyJ/_new  2021-09-22 22:13:02.860327541 +0200
@@ -22,9 +22,9 @@
 Release:        0
 Summary:        An argparse wrapper
 License:        LGPL-3.0-or-later
-Group:          Development/Languages/Python
 URL:            https://github.com/neithere/argh/
 Source:         
https://files.pythonhosted.org/packages/source/a/argh/argh-%{version}.tar.gz
+Patch0:         support-py39.patch
 BuildRequires:  %{python_module iocapture}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pytest}
@@ -56,6 +56,7 @@
 
 %prep
 %setup -q -n argh-%{version}
+%autopatch -p1
 
 %build
 %python_build

++++++ support-py39.patch ++++++
Index: argh-0.26.2/test/test_integration.py
===================================================================
--- argh-0.26.2.orig/test/test_integration.py
+++ argh-0.26.2/test/test_integration.py
@@ -377,7 +377,7 @@ def test_invalid_choice():
     p = DebugArghParser()
     p.add_commands([cmd])
 
-    assert run(p, 'bar', exit=True).startswith('invalid choice')
+    assert 'invalid choice' in run(p, 'bar', exit=True)
 
     if sys.version_info < (3,3):
         # Python before 3.3 exits with a less informative error
@@ -391,7 +391,7 @@ def test_invalid_choice():
     p = DebugArghParser()
     p.add_commands([cmd], namespace='nest')
 
-    assert run(p, 'nest bar', exit=True).startswith('invalid choice')
+    assert 'invalid choice' in run(p, 'nest bar', exit=True)
 
     if sys.version_info < (3,3):
         # Python before 3.3 exits with a less informative error
@@ -511,7 +511,7 @@ def test_explicit_cmd_name():
 
     p = DebugArghParser()
     p.add_commands([orig_name])
-    assert run(p, 'orig-name', exit=True).startswith('invalid choice')
+    assert 'invalid choice' in run(p, 'orig-name', exit=True)
     assert run(p, 'new-name').out == 'ok\n'
 
 

Reply via email to