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
b7616621
Commit
b7616621
authored
Apr 02, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #21526: Fixed the test_booleans test for wantobjects = 0.
parents
b452f41c
9171fe5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Lib/test/test_tcl.py
Lib/test/test_tcl.py
+6
-2
No files found.
Lib/test/test_tcl.py
View file @
b7616621
...
...
@@ -382,8 +382,12 @@ class TclTest(unittest.TestCase):
tcl
=
self
.
interp
def
check
(
expr
,
expected
):
result
=
tcl
.
call
(
'expr'
,
expr
)
self
.
assertEqual
(
result
,
expected
)
self
.
assertIsInstance
(
result
,
int
)
if
tcl
.
wantobjects
():
self
.
assertEqual
(
result
,
expected
)
self
.
assertIsInstance
(
result
,
int
)
else
:
self
.
assertIn
(
result
,
(
expr
,
str
(
int
(
expected
))))
self
.
assertIsInstance
(
result
,
str
)
check
(
'true'
,
True
)
check
(
'yes'
,
True
)
check
(
'on'
,
True
)
...
...
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