diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-23 13:22:10 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-23 13:22:10 (GMT) |
commit | d3113664a2054b2c4e3b0268bdb94fbbe237686c (patch) | |
tree | 93e87164b3bf460eae2d3ad440c2f66d620db393 /Lib/tkinter | |
parent | 72d28500b3c5e6f4051826432b2a801ce4e556f4 (diff) | |
parent | c17565e4a90a6b4c9e31edf5030030a365600db6 (diff) | |
download | cpython-d3113664a2054b2c4e3b0268bdb94fbbe237686c.zip cpython-d3113664a2054b2c4e3b0268bdb94fbbe237686c.tar.gz cpython-d3113664a2054b2c4e3b0268bdb94fbbe237686c.tar.bz2 |
Issue #19733: Temporary disable test_image on MacOSX.
Diffstat (limited to 'Lib/tkinter')
-rw-r--r-- | Lib/tkinter/test/test_tkinter/test_widgets.py | 3 | ||||
-rw-r--r-- | Lib/tkinter/test/widget_tests.py | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_widgets.py b/Lib/tkinter/test/test_tkinter/test_widgets.py index 166a752..4de6531 100644 --- a/Lib/tkinter/test/test_tkinter/test_widgets.py +++ b/Lib/tkinter/test/test_tkinter/test_widgets.py @@ -1,6 +1,7 @@ import unittest import tkinter import os +import sys from test.support import requires from tkinter.test.support import (tcl_version, requires_tcl, @@ -262,6 +263,8 @@ class MenubuttonTest(AbstractLabelTest, unittest.TestCase): 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') diff --git a/Lib/tkinter/test/widget_tests.py b/Lib/tkinter/test/widget_tests.py index 14b4ca1..bd274e6 100644 --- a/Lib/tkinter/test/widget_tests.py +++ b/Lib/tkinter/test/widget_tests.py @@ -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 tkinter.ttk import setup_master, Scale 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, 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') |