summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tcl.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-11 07:58:02 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-11 07:58:02 (GMT)
commitd5fd6188e286a52334e24ef1ce4467618c2c1271 (patch)
tree525e720f81bcf93c6c8116f03b22ea585e913a08 /Lib/test/test_tcl.py
parent979f80b8da091c596f5e602accfb91962a816056 (diff)
parentabf68ce16474a2d252723099f1c7a6d640191123 (diff)
downloadcpython-d5fd6188e286a52334e24ef1ce4467618c2c1271.zip
cpython-d5fd6188e286a52334e24ef1ce4467618c2c1271.tar.gz
cpython-d5fd6188e286a52334e24ef1ce4467618c2c1271.tar.bz2
Issue #21951: Fixed a crash in Tkinter on AIX when called Tcl command with
empty string or tuple argument. On some platforms Tcl memory allocator returns NULL when allocating zero-sized block of memory.
Diffstat (limited to 'Lib/test/test_tcl.py')
-rw-r--r--Lib/test/test_tcl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
index 03b2c10..d0251aa 100644
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -418,7 +418,6 @@ class TclTest(unittest.TestCase):
self.assertEqual(passValue(['a', ['b', 'c']]),
('a', ('b', 'c')) if self.wantobjects else 'a {b c}')
- @unittest.skipIf(sys.platform.startswith("aix"), 'Issue #21951: crashes on AIX')
def test_user_command(self):
result = None
def testfunc(arg):
@@ -446,9 +445,11 @@ class TclTest(unittest.TestCase):
check('string')
check('string\xbd')
check('string\u20ac')
+ check('')
check(b'string', 'string')
check(b'string\xe2\x82\xac', 'string\xe2\x82\xac')
check(b'string\xbd', 'string\xbd')
+ check(b'', '')
check('str\x00ing')
check('str\x00ing\xbd')
check('str\x00ing\u20ac')