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
b5d55184
Commit
b5d55184
authored
Dec 25, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
test_debug in test_tkinter/test_text no longer fails when wantobjects is false.
parents
cb131948
a1de9063
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/tkinter/test/test_tkinter/test_text.py
Lib/tkinter/test/test_tkinter/test_text.py
+3
-2
No files found.
Lib/tkinter/test/test_tkinter/test_text.py
View file @
b5d55184
...
...
@@ -16,12 +16,13 @@ class TextTest(unittest.TestCase):
def
test_debug
(
self
):
text
=
self
.
text
wantobjects
=
self
.
root
.
wantobjects
()
olddebug
=
text
.
debug
()
try
:
text
.
debug
(
0
)
self
.
assertEqual
(
text
.
debug
(),
0
)
self
.
assertEqual
(
text
.
debug
(),
0
if
wantobjects
else
'0'
)
text
.
debug
(
1
)
self
.
assertEqual
(
text
.
debug
(),
1
)
self
.
assertEqual
(
text
.
debug
(),
1
if
wantobjects
else
'1'
)
finally
:
text
.
debug
(
olddebug
)
self
.
assertEqual
(
text
.
debug
(),
olddebug
)
...
...
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