File: fix-vlbox-test.patch

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (25 lines) | stat: -rw-r--r-- 769 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From a8ad57f65aafe2f0ab29c7e00330f63853080fda Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Mon, 19 Nov 2018 20:43:37 -0500
Subject: [PATCH] Fix vlbox test on Python 3

---
 unittests/test_vlbox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unittests/test_vlbox.py b/unittests/test_vlbox.py
index eb7054ee..6925875e 100644
--- a/unittests/test_vlbox.py
+++ b/unittests/test_vlbox.py
@@ -97,7 +97,7 @@ class MyVListBox(wx.VListBox):
         color = 'white'
         if self.IsSelected(idx):
             color = self.GetSelectionBackground()
-            if not color:
+            if not color.IsOk():
                 color = 'navy'
         dc.SetPen(wx.Pen(color, 1))
         dc.SetBrush(wx.Brush(color))
-- 
2.19.1