aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets
diff options
context:
space:
mode:
authorChristian Tismer <[email protected]>2021-11-09 15:24:30 +0100
committerChristian Tismer <[email protected]>2021-11-09 16:12:27 +0100
commit132d425a105749455e174563ec6b7123961c5076 (patch)
tree90c581ce15113e946f46516c8d37f6dd99861589 /sources/pyside6/tests/QtWidgets
parent1c16cad157eb6233c8d128567719d214c395b10e (diff)
PyPySide: Fix BindingManager::getOverride and others
PyPy has a major difference when it comes to distinguish PyCFunction and PyFunction/PyMethod. PyCFunction is not differentiated in PyPy and its handling collapses with PyMethod handling. A simple way to emulate the difference is by a redefinition that uses a check for __module__, that does not exist for builtins. Observation: There are quite a number of false callbacks in Qt that create wrong notifications. Before this error was fixed, these errors were reported by the error handler. When handled correctly, these spurious notifications are ignored, again. The effect of this change is very good: 76 errors left instead of 99. [ChangeLog][shiboken6] The override handling for PyPy was fixed because PyPy has a different understanding of builtin functions. Task-number: PYSIDE-535 Change-Id: I7d7419135a50df9a540e953b75890ca2ec28993c Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'sources/pyside6/tests/QtWidgets')
-rw-r--r--sources/pyside6/tests/QtWidgets/paint_event_test.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/sources/pyside6/tests/QtWidgets/paint_event_test.py b/sources/pyside6/tests/QtWidgets/paint_event_test.py
index 6bfeade6f..96f38f3f2 100644
--- a/sources/pyside6/tests/QtWidgets/paint_event_test.py
+++ b/sources/pyside6/tests/QtWidgets/paint_event_test.py
@@ -99,16 +99,6 @@ class PaintEventOverride(UsesQApplication):
# Test QWidget.paintEvent override
timer_id = self.widget.startTimer(100)
self.widget.show()
- if hasattr(sys, "pypy_version_info"):
- # PYSIDE-535: Next line gives millions of
- orig_exc = dedent("""
- TypeError: 'PySide6.QtWidgets.QApplication.notify' called with wrong argument types:
- PySide6.QtWidgets.QApplication.notify(MyWidget, QPainter)
- Supported signatures:
- PySide6.QtWidgets.QApplication.notify(PySide6.QtCore.QObject, PySide6.QtCore.QEvent)
- """)
- raise SystemError(orig_exc)
-
self.app.exec()
self.widget.killTimer(timer_id)
self.assertTrue(self.widget.paint_event_called)