Debian Patches

Status for pyatspi/2.57.0-3

Patch Description Author Forwarded Bugs Origin Last update
install-image https://gitlab.gnome.org/GNOME/pyatspi2/-/merge_requests/36 no
pasy commit 445d64bb1abe946bde4b979a7f34757c2120aaca

pasy: Fix reporting exceptions

We currently get:

Traceback (most recent call last):
[...]
AttributeError: 'xml.dom.minidom.Element' object has no attribute 'ownerDocument'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/build/reproducible-path/pyatspi-2.57.0/tests/pyatspi/pasytest/Pasy.py", line 118, in idle_handler
step.run()
~~~~~~~~^^
File "/build/reproducible-path/pyatspi-2.57.0/tests/pyatspi/pasytest/Pasy.py", line 59, in run
self.entry()
~~~~~~~~~~^^
File "/build/reproducible-path/pyatspi-2.57.0/tests/pyatspi/pasytest/Pasy.py", line 83, in entry
self.fail(e.message)
^^^^^^^^^
AttributeError: 'AttributeError' object has no attribute 'message'

With the fix, we get as expected:

test_tree - FAILED - 'xml.dom.minidom.Element' object has no attribute 'ownerDocument'

diff --git a/tests/pyatspi/pasytest/Pasy.py b/tests/pyatspi/pasytest/Pasy.py
index df80204..52fced2 100644
Samuel Thibault <samuel.thibault@ens-lyon.org> yes 2025-12-17
python3.13 commit a3cd123dc7b7b13dad380f18ea9c2eabcdfccaa7

Fix creating dom nodes

Python 3.13 introduced a fix
https://github.com/python/cpython/pull/142146

which brought a regression
https://github.com/python/cpython/issues/142754

Discussion shows that one is not supposed to use Element to create
nodes. It used to work but is not really supported. They fixed the
issue in
https://github.com/python/cpython/pull/142794/files

but better create dom nodes the proper way with doc.createElement.

collectiontest.py didn't actually need to create elements any more.

diff --git a/tests/pyatspi/accessibletest.py b/tests/pyatspi/accessibletest.py
index 930ad63..afe3e60 100644
Samuel Thibault <samuel.thibault@ens-lyon.org> yes 2025-12-17
pythonver Make sure we run the python interpreter we want to test no

All known versions for source package 'pyatspi'

Links