Issue #19733: Temporary disable test_image on MacOSX.

This commit is contained in:
Serhiy Storchaka 2013-11-23 15:22:10 +02:00
commit d3113664a2
2 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import unittest import unittest
import tkinter import tkinter
import os import os
import sys
from test.support import requires from test.support import requires
from tkinter.test.support import (tcl_version, requires_tcl, from tkinter.test.support import (tcl_version, requires_tcl,
@ -262,6 +263,8 @@ class MenubuttonTest(AbstractLabelTest, unittest.TestCase):
test_highlightthickness = StandardOptionsTests.test_highlightthickness test_highlightthickness = StandardOptionsTests.test_highlightthickness
@unittest.skipIf(sys.platform == 'darwin',
'crashes with Cocoa Tk (issue19733)')
def test_image(self): def test_image(self):
widget = self.create() widget = self.create()
image = tkinter.PhotoImage('image1') image = tkinter.PhotoImage('image1')

View File

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