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
b1629141
Commit
b1629141
authored
Apr 02, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #16840: Fixed test_tcl for Tcl < 8.5.
parents
9fe562b4
2379d541
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/test/test_tcl.py
Lib/test/test_tcl.py
+4
-4
No files found.
Lib/test/test_tcl.py
View file @
b1629141
...
@@ -143,7 +143,9 @@ class TclTest(unittest.TestCase):
...
@@ -143,7 +143,9 @@ class TclTest(unittest.TestCase):
tcl
=
self
.
interp
.
tk
tcl
=
self
.
interp
.
tk
for
i
in
self
.
get_integers
():
for
i
in
self
.
get_integers
():
self
.
assertEqual
(
tcl
.
getint
(
' %d '
%
i
),
i
)
self
.
assertEqual
(
tcl
.
getint
(
' %d '
%
i
),
i
)
self
.
assertEqual
(
tcl
.
getint
(
' %#o '
%
i
),
i
)
if
tcl_version
>=
(
8
,
5
):
self
.
assertEqual
(
tcl
.
getint
(
' %#o '
%
i
),
i
)
self
.
assertEqual
(
tcl
.
getint
((
' %#o '
%
i
).
replace
(
'o'
,
''
)),
i
)
self
.
assertEqual
(
tcl
.
getint
(
' %#x '
%
i
),
i
)
self
.
assertEqual
(
tcl
.
getint
(
' %#x '
%
i
),
i
)
if
tcl_version
<
(
8
,
5
):
# bignum was added in Tcl 8.5
if
tcl_version
<
(
8
,
5
):
# bignum was added in Tcl 8.5
self
.
assertRaises
(
TclError
,
tcl
.
getint
,
str
(
2
**
1000
))
self
.
assertRaises
(
TclError
,
tcl
.
getint
,
str
(
2
**
1000
))
...
@@ -420,9 +422,7 @@ class TclTest(unittest.TestCase):
...
@@ -420,9 +422,7 @@ class TclTest(unittest.TestCase):
self
.
assertEqual
(
result
,
str
(
i
))
self
.
assertEqual
(
result
,
str
(
i
))
self
.
assertIsInstance
(
result
,
str
)
self
.
assertIsInstance
(
result
,
str
)
if
tcl_version
<
(
8
,
5
):
# bignum was added in Tcl 8.5
if
tcl_version
<
(
8
,
5
):
# bignum was added in Tcl 8.5
result
=
tcl
.
call
(
'expr'
,
str
(
2
**
1000
))
self
.
assertRaises
(
TclError
,
tcl
.
call
,
'expr'
,
str
(
2
**
1000
))
self
.
assertEqual
(
result
,
str
(
2
**
1000
))
self
.
assertIsInstance
(
result
,
str
)
def
test_passing_values
(
self
):
def
test_passing_values
(
self
):
def
passValue
(
value
):
def
passValue
(
value
):
...
...
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