]> granicus.if.org Git - python/commitdiff
Issue #19733: Temporary disable test_image on MacOSX.
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 23 Nov 2013 13:22:20 +0000 (15:22 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 23 Nov 2013 13:22:20 +0000 (15:22 +0200)
Lib/lib-tk/test/test_tkinter/test_widgets.py
Lib/lib-tk/test/widget_tests.py

index e7ad14c7587aeec2909530f7aae9f257ea0c8e98..89eaa62cb9b745c16c31547ac9111bbb337af768 100644 (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')
index c2c0a84c07799f0498e3d69f5c40697623fc799a..4c37aa476731e72a410ac893e39848a6aa6031f3 100644 (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')