From 4b0a26a9d18b8a39ecbbb23d12c8ff35a5cfff41 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Thu, 28 Aug 2025 23:21:30 -0400 Subject: [PATCH 1/3] FIX: be more cautious about checking widget size This can fail if the c++ side of the object has already been cleaned up but the Python side is still lingering (due to refs in callbacks). closes #29618 --- lib/matplotlib/backends/backend_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_qt.py b/lib/matplotlib/backends/backend_qt.py index dd614e516de5..d0aded5fff63 100644 --- a/lib/matplotlib/backends/backend_qt.py +++ b/lib/matplotlib/backends/backend_qt.py @@ -517,7 +517,7 @@ def _draw_idle(self): if not self._draw_pending: return self._draw_pending = False - if self.height() <= 0 or self.width() <= 0: + if _isdeleted(self) or self.height() <= 0 or self.width() <= 0: return try: self.draw() From 8693a2018bac679e951c3aa70ca208cb38905b70 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 29 Aug 2025 14:12:31 -0400 Subject: [PATCH 2/3] CI: try skipping just released version of coverage --- requirements/testing/all.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/testing/all.txt b/requirements/testing/all.txt index e386924a9b67..7351c2470f9f 100644 --- a/requirements/testing/all.txt +++ b/requirements/testing/all.txt @@ -2,7 +2,7 @@ black<24 certifi -coverage!=6.3 +coverage!=6.3,!=7.10.6 psutil pytest!=4.6.0,!=5.4.0,!=8.1.0 pytest-cov From 63842c09648577d870b5ed19df383ac977b91cd8 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 29 Aug 2025 14:30:04 -0400 Subject: [PATCH 3/3] CI: try pinning back pytest-rerunfailures instead --- requirements/testing/all.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements/testing/all.txt b/requirements/testing/all.txt index 7351c2470f9f..a41073bdf47e 100644 --- a/requirements/testing/all.txt +++ b/requirements/testing/all.txt @@ -2,11 +2,11 @@ black<24 certifi -coverage!=6.3,!=7.10.6 +coverage!=6.3 psutil pytest!=4.6.0,!=5.4.0,!=8.1.0 pytest-cov -pytest-rerunfailures +pytest-rerunfailures!=16.0 pytest-timeout pytest-xdist pytest-xvfb