Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(11)

Unified Diff: Lib/tkinter/test/test_ttk/test_widgets.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/tkinter/test/support.py ('k') | Lib/turtle.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/tkinter/test/test_ttk/test_widgets.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/tkinter/test/test_ttk/test_widgets.py Mon Jul 25 09:47:18 2011 -0400
@@ -3,7 +3,6 @@
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 @@
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 @@
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))
« no previous file with comments | « Lib/tkinter/test/support.py ('k') | Lib/turtle.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+