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
ece38d94
Commit
ece38d94
authored
Sep 04, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #22334: Add debug traces to test_tcl
parent
b39b918b
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 @
ece38d94
...
...
@@ -499,8 +499,9 @@ class TclTest(unittest.TestCase):
(1, '
2
', (3.4,)) if self.wantobjects else
('
1
', '
2
', '
3.4
')),
]
tk_patchlevel = get_tk_patchlevel()
if tcl_version >= (8, 5):
if not self.wantobjects or
get_tk_patchlevel()
< (8, 5, 5):
if not self.wantobjects or
tk_patchlevel
< (8, 5, 5):
# Before 8.5.5 dicts were converted to lists through string
expected = ('
12
', '
\
u20ac
', '
\
xe2
\
x82
\
xac
', '
3.4
')
else:
...
...
@@ -509,8 +510,11 @@ class TclTest(unittest.TestCase):
(call('
dict
', '
create
', 12, '
\
u20ac
', b'
\
xe2
\
x82
\
xac
', (3.4,)),
expected),
]
dbg_info = ('
want
objects
?
%
s
,
Tcl
version
:
%
s
,
Tk
patchlevel
:
%
s
'
% (self.wantobjects, tcl_version, tk_patchlevel))
for arg, res in testcases:
self.assertEqual(splitlist(arg), res, msg=arg)
self.assertEqual(splitlist(arg), res,
'
arg
=%
a
,
%
s
' % (arg, dbg_info))
self.assertRaises(TclError, splitlist, '
{
')
def test_split(self):
...
...
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