diff options
author | Ned Deily <nad@acm.org> | 2011-05-29 22:39:11 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2011-05-29 22:39:11 (GMT) |
commit | 65bf417fe1e061169c93fd5030611410ad9d0e0e (patch) | |
tree | 4cbccf5b25dadba4df8c7a465536572db6190b5a /Lib/tkinter | |
parent | d8e08067b96d677cf68e18512cb5b7b60f18c558 (diff) | |
download | cpython-65bf417fe1e061169c93fd5030611410ad9d0e0e.zip cpython-65bf417fe1e061169c93fd5030611410ad9d0e0e.tar.gz cpython-65bf417fe1e061169c93fd5030611410ad9d0e0e.tar.bz2 |
Issue #10736: Revert changeset de4d34a95603 as it causes failures with
old Apple-supplied Carbon Tk 8.4.
Diffstat (limited to 'Lib/tkinter')
-rw-r--r-- | Lib/tkinter/test/test_ttk/test_widgets.py | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/Lib/tkinter/test/test_ttk/test_widgets.py b/Lib/tkinter/test/test_ttk/test_widgets.py index f5c0f17..cd00a61 100644 --- a/Lib/tkinter/test/test_ttk/test_widgets.py +++ b/Lib/tkinter/test/test_ttk/test_widgets.py @@ -3,7 +3,6 @@ import tkinter import os from tkinter import ttk from test.support import requires, run_unittest -import sys import tkinter.test.support as support from tkinter.test.test_ttk.test_functions import MockTclObj, MockStateSpec @@ -562,19 +561,11 @@ class NotebookTest(unittest.TestCase): self.nb.pack() self.nb.wait_visibility() - if sys.platform == 'darwin': - tb_idx = "@20,5" - else: - tb_idx = "@5,5" - self.assertEqual(self.nb.tab(tb_idx), self.nb.tab('current')) + self.assertEqual(self.nb.tab('@5,5'), self.nb.tab('current')) for i in range(5, 100, 5): - try: - if self.nb.tab('@%d, 5' % i, text=None) == 'a': - break - except tkinter.TclError: - pass - + if self.nb.tab('@%d, 5' % i, text=None) == 'a': + break else: self.fail("Tab with text 'a' not found") @@ -731,10 +722,7 @@ class NotebookTest(unittest.TestCase): self.nb.enable_traversal() self.nb.focus_force() support.simulate_mouse_click(self.nb, 5, 5) - if sys.platform == 'darwin': - self.nb.event_generate('<Option-a>') - else: - self.nb.event_generate('<Alt-a>') + self.nb.event_generate('<Alt-a>') self.assertEqual(self.nb.select(), str(self.child1)) |