From 56e8241e8f16a5ebea3f443e59d5cf7df28f32d7 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 29 Jul 2016 20:08:10 -0700 Subject: [PATCH] Use a wx.GCDC --- unittests/test_pseudodc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/test_pseudodc.py b/unittests/test_pseudodc.py index d8fd1ce0..d673d823 100644 --- a/unittests/test_pseudodc.py +++ b/unittests/test_pseudodc.py @@ -24,6 +24,8 @@ class pseudodc_Tests(wtc.WidgetTestCase): def _paintIt(self, evt): # Paint event handler for the panel dc = wx.PaintDC(self.pnl) + if 'wxMac' not in wx.PlatformInfo: + dc = wx.GCDC(dc) self.pdc.DrawToDC(dc) def _showIt(self):