summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tcl.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-22 14:40:31 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-22 14:40:31 (GMT)
commit203eb317d23a1b7dcdf5ca3131df7008e251d423 (patch)
treed3ac6f9673674c94664e3c9bae9b5e2ab58c5f73 /Lib/test/test_tcl.py
parent1852b30c50775a2cf36476e12e06e017d076427f (diff)
downloadcpython-203eb317d23a1b7dcdf5ca3131df7008e251d423.zip
cpython-203eb317d23a1b7dcdf5ca3131df7008e251d423.tar.gz
cpython-203eb317d23a1b7dcdf5ca3131df7008e251d423.tar.bz2
Issue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj
argument. This is needed for support Tcl/Tk 8.6.
Diffstat (limited to 'Lib/test/test_tcl.py')
-rw-r--r--Lib/test/test_tcl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
index 91d324d..4e52fd4 100644
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -200,6 +200,8 @@ class TclTest(unittest.TestCase):
(('a', 3.4), ('a', 3.4)),
((), ()),
(call('list', 1, '2', (3.4,)), (1, '2', (3.4,))),
+ (call('dict', 'create', 1, '\u20ac', b'\xe2\x82\xac', (3.4,)),
+ (1, '\u20ac', '\u20ac', (3.4,))),
]
for arg, res in testcases:
self.assertEqual(splitlist(arg), res, msg=arg)
@@ -232,6 +234,8 @@ class TclTest(unittest.TestCase):
(('a', (2, 3.4)), ('a', (2, 3.4))),
((), ()),
(call('list', 1, '2', (3.4,)), (1, '2', (3.4,))),
+ (call('dict', 'create', 12, '\u20ac', b'\xe2\x82\xac', (3.4,)),
+ (12, '\u20ac', '\u20ac', (3.4,))),
]
for arg, res in testcases:
self.assertEqual(split(arg), res, msg=arg)