From 21dd774744887d9c494fa93cf80267ed14cf99bc Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Tue, 5 Apr 2016 22:35:50 -0400 Subject: [PATCH] Skip PrinterDC tests on wxGTK - PrinterDC isn't supported and will crash --- unittests/test_dcprint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/test_dcprint.py b/unittests/test_dcprint.py index c138600d..3d2d9bc1 100644 --- a/unittests/test_dcprint.py +++ b/unittests/test_dcprint.py @@ -7,6 +7,7 @@ import sys class dcprint_tests(wtc.WidgetTestCase): + @unittest.skipIf('wxGTK' in wx.PlatformInfo, 'PrinterDC not supported on wxGTK') def test_PrinterDC1(self): dc = wx.PrinterDC(wx.PrintData()) dc.DrawLine(0,0, 50,50)