Unverified Kaydet (Commit) b5213f4d authored tarafından Ned Deily's avatar Ned Deily Kaydeden (comit) GitHub

[2.7] bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12015)

üst 72ff2f75
......@@ -331,7 +331,12 @@ class EntryTest(AbstractWidgetTest, unittest.TestCase):
self.entry.wait_visibility()
self.entry.update_idletasks()
self.assertEqual(self.entry.identify(5, 5), "textarea")
# bpo-27313: macOS Cocoa widget differs from X, allow either
if sys.platform == 'darwin':
self.assertIn(self.entry.identify(5, 5),
("textarea", "Combobox.button") )
else:
self.assertEqual(self.entry.identify(5, 5), "textarea")
self.assertEqual(self.entry.identify(-1, -1), "")
self.assertRaises(tkinter.TclError, self.entry.identify, None, 5)
......
Avoid test_ttk_guionly ComboboxTest failure with macOS Cocoa Tk.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment