From 30daf80f36f58ad9f61824f3f7c1f5985df60516 Mon Sep 17 00:00:00 2001 From: Scott Talbert 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))