Issue #19733: Temporary disable test_image on MacOSX.

This commit is contained in:
Serhiy Storchaka 2013-11-23 15:22:20 +02:00
parent 62cd124ada
commit 9ec0722723
2 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import unittest
import Tkinter
import os
import sys
from test.test_support import requires, run_unittest
from test_ttk.support import (tcl_version, requires_tcl, get_tk_patchlevel,
@ -259,6 +260,13 @@ class MenubuttonTest(AbstractLabelTest, unittest.TestCase):
test_highlightthickness = StandardOptionsTests.test_highlightthickness.im_func
<<<<<<<
=======
test_highlightthickness = StandardOptionsTests.test_highlightthickness
@unittest.skipIf(sys.platform == 'darwin',
'crashes with Cocoa Tk (issue19733)')
>>>>>>>
def test_image(self):
widget = self.create()
image = Tkinter.PhotoImage('image1')

View File

@ -1,5 +1,7 @@
# Common tests for test_tkinter/test_widgets.py and test_ttk/test_widgets.py
import unittest
import sys
import Tkinter
from ttk import setup_master, Scale
from test_ttk.support import (tcl_version, requires_tcl, get_tk_patchlevel,
@ -308,6 +310,8 @@ class StandardOptionsTests(object):
self.checkParam(widget, 'highlightthickness', -2, expected=0,
conv=self._conv_pixels)
@unittest.skipIf(sys.platform == 'darwin',
'crashes with Cocoa Tk (issue19733)')
def test_image(self):
widget = self.create()
self.checkImageParam(widget, 'image')