[Python-checkins] cpython (3.3): Issue #19733: Temporary disable test_image on MacOSX.
serhiy.storchaka
python-checkins at python.org
Sat Nov 23 14:34:54 CET 2013
http://hg.python.org/cpython/rev/9d0a76349eda
changeset: 87412:9d0a76349eda
branch: 3.3
parent: 87389:03a55e207720
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sat Nov 23 15:21:33 2013 +0200
summary:
Issue #19733: Temporary disable test_image on MacOSX.
files:
Lib/tkinter/test/test_tkinter/test_widgets.py | 3 +++
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
--- 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 @@
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
--- 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 @@
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')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list