diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-22 14:42:45 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-22 14:42:45 (GMT) |
commit | 2ac1c1a31dbd8533b6cd3b6ea9936e4068ad0198 (patch) | |
tree | 45feb7ac546e8da7e1a64e9408ba7613a918292c /Lib | |
parent | ac6416424bc425faa346e3cd29b94f4fc6c5b8a3 (diff) | |
download | cpython-2ac1c1a31dbd8533b6cd3b6ea9936e4068ad0198.zip cpython-2ac1c1a31dbd8533b6cd3b6ea9936e4068ad0198.tar.gz cpython-2ac1c1a31dbd8533b6cd3b6ea9936e4068ad0198.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')
-rw-r--r-- | Lib/test/test_tcl.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index 3460262..1e60b1d 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -209,6 +209,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, u'\u20ac', '\xe2\x82\xac', (3.4,)), + (1, u'\u20ac', u'\u20ac', (3.4,))), ] for arg, res in testcases: self.assertEqual(splitlist(arg), res) @@ -241,6 +243,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, u'\u20ac', '\xe2\x82\xac', (3.4,)), + (12, u'\u20ac', u'\u20ac', (3.4,))), ] for arg, res in testcases: self.assertEqual(split(arg), res) |