bpo-19733: Re-enable tests for -image option in Tkinter (GH-23785)

This commit is contained in:
Serhiy Storchaka 2020-12-16 12:31:49 +02:00 committed by GitHub
parent 79782fe4f8
commit 5f0fe8ec70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -2,7 +2,6 @@ import unittest
import tkinter import tkinter
from tkinter import TclError from tkinter import TclError
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,
@ -265,8 +264,6 @@ 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(master=self.root, name='image1') image = tkinter.PhotoImage(master=self.root, name='image1')

View File

@ -1,7 +1,6 @@
# 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 unittest
import sys
import tkinter import tkinter
from tkinter.test.support import (AbstractTkTest, tcl_version, requires_tcl, from tkinter.test.support import (AbstractTkTest, tcl_version, requires_tcl,
get_tk_patchlevel, pixels_conv, tcl_obj_eq) get_tk_patchlevel, pixels_conv, tcl_obj_eq)
@ -332,8 +331,6 @@ 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')