Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e0837a03
Commit
e0837a03
authored
Jan 11, 2014
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix some ttk tests. Error messages were changed in 8.6b3.
parent
46375383
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/tkinter/test/test_ttk/test_widgets.py
Lib/tkinter/test/test_ttk/test_widgets.py
+3
-3
No files found.
Lib/tkinter/test/test_ttk/test_widgets.py
View file @
e0837a03
...
...
@@ -6,7 +6,7 @@ import sys
import
tkinter.test.support
as
support
from
tkinter.test.test_ttk.test_functions
import
MockTclObj
from
tkinter.test.support
import
tcl_version
from
tkinter.test.support
import
tcl_version
,
get_tk_patchlevel
from
tkinter.test.widget_tests
import
(
add_standard_options
,
noconv
,
AbstractWidgetTest
,
StandardOptionsTests
,
IntegerSizeTests
,
PixelSizeTests
,
setUpModule
)
...
...
@@ -20,7 +20,7 @@ class StandardTtkOptionsTests(StandardOptionsTests):
widget
=
self
.
create
()
self
.
assertEqual
(
widget
[
'class'
],
''
)
errmsg
=
'attempt to change read-only option'
if
tcl_version
<
(
8
,
6
):
if
get_tk_patchlevel
()
<
(
8
,
6
,
0
):
# actually this was changed in 8.6b3
errmsg
=
'Attempt to change read-only option'
self
.
checkInvalidParam
(
widget
,
'class'
,
'Foo'
,
errmsg
=
errmsg
)
widget2
=
self
.
create
(
class_
=
'Foo'
)
...
...
@@ -576,7 +576,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
widget = self.create()
self.assertEqual(str(widget['
orient
']), '
vertical
')
errmsg='
attempt
to
change
read
-
only
option
'
if
tcl_version < (8, 6):
if
get_tk_patchlevel() < (8, 6, 0): # actually this was changen in 8.6b3
errmsg='
Attempt
to
change
read
-
only
option
'
self.checkInvalidParam(widget, '
orient
', '
horizontal
',
errmsg=errmsg)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment