Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d311366

Browse files
Issue #19733: Temporary disable test_image on MacOSX.
2 parents 72d2850 + c17565e commit d311366

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/tkinter/test/test_tkinter/test_widgets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import unittest
22
import tkinter
33
import os
4+
import sys
45
from test.support import requires
56

67
from tkinter.test.support import (tcl_version, requires_tcl,
@@ -262,6 +263,8 @@ def test_height(self):
262263

263264
test_highlightthickness = StandardOptionsTests.test_highlightthickness
264265

266+
@unittest.skipIf(sys.platform == 'darwin',
267+
'crashes with Cocoa Tk (issue19733)')
265268
def test_image(self):
266269
widget = self.create()
267270
image = tkinter.PhotoImage('image1')

Lib/tkinter/test/widget_tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Common tests for test_tkinter/test_widgets.py and test_ttk/test_widgets.py
22

3+
import unittest
4+
import sys
35
import tkinter
46
from tkinter.ttk import setup_master, Scale
57
from tkinter.test.support import (tcl_version, requires_tcl, get_tk_patchlevel,
@@ -289,6 +291,8 @@ def test_highlightthickness(self):
289291
self.checkParam(widget, 'highlightthickness', -2, expected=0,
290292
conv=self._conv_pixels)
291293

294+
@unittest.skipIf(sys.platform == 'darwin',
295+
'crashes with Cocoa Tk (issue19733)')
292296
def test_image(self):
293297
widget = self.create()
294298
self.checkImageParam(widget, 'image')

0 commit comments

Comments
 (0)