aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtGui/qrasterwindow_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtGui/qrasterwindow_test.py')
-rw-r--r--sources/pyside6/tests/QtGui/qrasterwindow_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtGui/qrasterwindow_test.py b/sources/pyside6/tests/QtGui/qrasterwindow_test.py
index a2d8ecc3e..8224f1e35 100644
--- a/sources/pyside6/tests/QtGui/qrasterwindow_test.py
+++ b/sources/pyside6/tests/QtGui/qrasterwindow_test.py
@@ -53,7 +53,8 @@ class TestRasterWindow(QRasterWindow):
painter = QPainter(self)
painter.fillRect(clientRect, QColor(Qt.red))
painter.drawStaticText(QPoint(10, 10), self.text)
-
+ # PYSIDE-535: PyPy needs an explicit end() or a context manager.
+ painter.end()
class QRasterWindowTest(UsesQGuiApplication):
def test(self):