Bug#1149599: python-pyqtgraph: FTBFS against python 3.15rc2 (test_reload: Function did not reload)

Margarita Manterola marga at debian.org
Thu Oct 1 13:36:19 BST 2026


Package: src:python-pyqtgraph
Version: 0.14.0-7
User: debian-python at lists.debian.org
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2 
version we found that python-pyqtgraph fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4933030/

 From the log, the error seems to be:

=================================== FAILURES 
===================================
_________________________________ test_reload 
__________________________________
[gw3] linux -- Python 3.15.0 /usr/bin/python3.15

tmp_module = '/tmp/pytest-of-sbuild/pytest-0/popen-gw3/test_reload0'

     @pytest.mark.skipif(
         (
             pg.Qt.QT_LIB.startswith("PySide") and
             parse(pg.Qt.QtVersion) < Version('6.6.0') and # not sure 
when exactly fixed
             platform != 'Darwin' # seems to work on macOS
         ),
         reason="Unknown Issue"
     )
     # 
https://www.riverbankcomputing.com/pipermail/pyqt/2024-August/045989.html
     @pytest.mark.qt_log_ignore("Registering dynamic slot")
     @pytest.mark.usefixtures("tmp_module")
     def test_reload(tmp_module):
         # write a module
         mod = os.path.join(tmp_module, 'reload_test_mod.py')
         print("\nRELOAD FILE:", mod)
         with open(mod, "w") as file_:
             file_.write(code.format(path_repr=pgpath_repr, msg="C.fn() 
Version1"))

         # import the new module
         import reload_test_mod
         print("RELOAD MOD:", reload_test_mod.__file__)

         c = reload_test_mod.C()
         c.sig.connect(c.fn)
         v1 = (reload_test_mod.C, reload_test_mod.C.sig, 
reload_test_mod.C.fn, c.sig, c.fn, c.fn.__func__)

         # write again and reload
         with open(mod, "w") as file_:
             file_.write(code.format(path_repr=pgpath_repr, msg="C.fn() 
Version 2"))
         time.sleep(1.1)
         #remove_cache(mod)
         _ = pg.reload.reloadAll(tmp_module, debug=True)
         v2 = (reload_test_mod.C, reload_test_mod.C.sig, 
reload_test_mod.C.fn, c.sig, c.fn, c.fn.__func__)

         oldcfn = pg.reload.getPreviousVersion(c.fn)
         if oldcfn is None:
             # Function did not reload; are we using pytest's assertion 
rewriting?
>           raise Exception("Function did not reload. (This can happen 
> when using py.test"
                 " with assertion rewriting; use --assert=plain for this 
test.)")
E           Exception: Function did not reload. (This can happen when 
using py.test with assertion rewriting; use --assert=plain for this 
test.)

tests/test_reload.py:73: Exception

Please note that while we ran into this error during the rebuild against 
Python 3.15, that doesn't mean that the root cause for the failure is 
necessarily the new Python version.

Setting the severity to important for now. Once Python 3.15 is released 
and later added to python3-defaults, this bug will become release 
critical.

-- 
Regards,
Marga



More information about the debian-science-maintainers mailing list