From fde6792936857d1a96d54dcf42ab94e32c8831d5 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 15 Jan 2019 15:14:49 -0800 Subject: [PATCH] Merge pull request #1127 from swt2c/fix_vlbox_test Fix vlbox test on Python 3 (cherry picked from commit 8c9b379bc4f7fd859eb95cf5430144a3f7753bf5) --- 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))