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))