Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-bpython for openSUSE:Factory checked in at 2026-05-27 16:21:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-bpython (Old) and /work/SRC/openSUSE:Factory/.python-bpython.new.1937 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-bpython" Wed May 27 16:21:10 2026 rev:23 rq:1355378 version:0.26 Changes: -------- --- /work/SRC/openSUSE:Factory/python-bpython/python-bpython.changes 2026-03-06 18:22:32.465996283 +0100 +++ /work/SRC/openSUSE:Factory/.python-bpython.new.1937/python-bpython.changes 2026-05-27 16:21:35.444275173 +0200 @@ -1,0 +2,6 @@ +Wed May 27 10:57:12 UTC 2026 - Nico Krapp <[email protected]> + +- Drop skip-tests.patch and replace with fix-tests.patch to fix one + failing test + +------------------------------------------------------------------- Old: ---- skip-tests.patch New: ---- fix-tests.patch ----------(Old B)---------- Old: - Drop skip-tests.patch and replace with fix-tests.patch to fix one failing test ----------(Old E)---------- ----------(New B)---------- New: - Drop skip-tests.patch and replace with fix-tests.patch to fix one failing test ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-bpython.spec ++++++ --- /var/tmp/diff_new_pack.5EYTAE/_old 2026-05-27 16:21:36.496318365 +0200 +++ /var/tmp/diff_new_pack.5EYTAE/_new 2026-05-27 16:21:36.496318365 +0200 @@ -25,8 +25,8 @@ License: MIT URL: https://www.bpython-interpreter.org/ Source: https://files.pythonhosted.org/packages/source/b/bpython/bpython-%{version}.tar.gz -# PATCH-FIX-UPSTREAM skip-tests.patch to skip tests that are broken upstream -Patch: skip-tests.patch +# PATCH-FIX-UPSTREAM fix-tests.patch gh#bpython/bpython@27fc6a0 +Patch: fix-tests.patch BuildRequires: %{python_module Babel} BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module base >= 3.10} ++++++ fix-tests.patch ++++++ >From 27fc6a0fb2710dc4f4b61a98fa45dd1f62c6bba7 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher <[email protected]> Date: Thu, 26 Mar 2026 15:45:47 +0100 Subject: [PATCH] Make test_traceback version agnostic --- bpython/test/test_interpreter.py | 56 ++------------------------------ 1 file changed, 3 insertions(+), 53 deletions(-) Index: bpython-0.26/bpython/test/test_interpreter.py =================================================================== --- bpython-0.26.orig/bpython/test/test_interpreter.py +++ bpython-0.26/bpython/test/test_interpreter.py @@ -97,57 +97,11 @@ class TestInterpreter(unittest.TestCase) i.runsource("gfunc()") - global_not_found = "name 'gfunc' is not defined" - - if (3, 13) <= sys.version_info[:2]: - expected = ( - "Traceback (most recent call last):\n File " - + green('"<input>"') - + ", line " - + bold(magenta("1")) - + ", in " - + cyan("<module>") - + "\n gfunc()" - + "\n ^^^^^\n" - + bold(red("NameError")) - + ": " - + cyan(global_not_found) - + "\n" - ) - elif (3, 11) <= sys.version_info[:2]: - expected = ( - "Traceback (most recent call last):\n File " - + green('"<input>"') - + ", line " - + bold(magenta("1")) - + ", in " - + cyan("<module>") - + "\n gfunc()" - + "\n ^^^^^\n" - + bold(red("NameError")) - + ": " - + cyan(global_not_found) - + "\n" - ) - else: - expected = ( - "Traceback (most recent call last):\n File " - + green('"<input>"') - + ", line " - + bold(magenta("1")) - + ", in " - + cyan("<module>") - + "\n gfunc()\n" - + bold(red("NameError")) - + ": " - + cyan(global_not_found) - + "\n" - ) - - a = i.a - self.assertMultiLineEqual(str(expected), str(plain("").join(a))) - self.assertEqual(expected, plain("").join(a)) + a = str(plain("").join(i.a)) + self.assertIn("name 'gfunc' is not defined", a) + self.assertIn("NameErro", a) + @unittest.skipUnless((3, 13) > sys.version_info[:2], "broken with 3.13+") def test_getsource_works_on_interactively_defined_functions(self): source = "def foo(x):\n return x + 1\n" i = interpreter.Interp()
