Files
Phoenix/unittests/test_dcprint.py
Robin Dunn 2a713adf1c Merge pull request #62 from swt2c/skip_dcprint_tests
Skip PrinterDC tests on wxGTK - PrinterDC isn't supported and will crash
2016-05-09 18:41:33 -07:00

22 lines
524 B
Python

import unittest
import wtc
import wx
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)
#---------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()