]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-19733: Re-enable tests for -image option in Tkinter (GH-23785)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Dec 2020 10:31:49 +0000 (12:31 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Dec 2020 10:31:49 +0000 (12:31 +0200)
Lib/tkinter/test/test_tkinter/test_widgets.py
Lib/tkinter/test/widget_tests.py

index b6f792d6c2cf8566085c244d990aeec13dbd1a4e..4b9b6ebdda04ea4242443cae3d2ce80668b369bb 100644 (file)
@@ -2,7 +2,6 @@ import unittest
 import tkinter
 from tkinter import TclError
 import os
-import sys
 from test.support import requires
 
 from tkinter.test.support import (tcl_version, requires_tcl,
@@ -265,8 +264,6 @@ 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(master=self.root, name='image1')
index b42ff52178f29e7c585febcb916871dcc1b7574d..ad4a8bd2bf3252a1ee5a87c493083bbd7c5b9cf2 100644 (file)
@@ -1,7 +1,6 @@
 # Common tests for test_tkinter/test_widgets.py and test_ttk/test_widgets.py
 
 import unittest
-import sys
 import tkinter
 from tkinter.test.support import (AbstractTkTest, tcl_version, requires_tcl,
                                   get_tk_patchlevel, pixels_conv, tcl_obj_eq)
@@ -332,8 +331,6 @@ 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')