File: icons-into-init.patch

package info (click to toggle)
spyder 6.0.5%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,676 kB
  • sloc: python: 121,632; sh: 420; xml: 142; javascript: 131; cpp: 67; makefile: 20; ansic: 19; erlang: 15; lisp: 11; java: 5
file content (23 lines) | stat: -rw-r--r-- 730 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Ensure icons are not initialised too early during tests
 Upstream does not wish to apply this patch, but without it, the entire
 test suite fails to run for us.
Forwarded: https://github.com/spyder-ide/spyder/issues/23074
Author: Colin Watson <cjwatson@debian.org> and Julian Gilbey <jdg@debian.org>
Last-Update: 2025-04-01

--- a/spyder/widgets/sidebardialog.py
+++ b/spyder/widgets/sidebardialog.py
@@ -107,12 +107,12 @@
 
     # To be set by childs
     TITLE = ""
-    ICON = QIcon()
     MIN_WIDTH = 800
     MIN_HEIGHT = 600
     PAGE_CLASSES: List[Type[SidebarPage]] = []
 
     def __init__(self, parent=None):
+        self.ICON = QIcon()
         QDialog.__init__(self, parent)
 
         # ---- Attributes