summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tcl.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-11 07:57:13 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-11 07:57:13 (GMT)
commitabf68ce16474a2d252723099f1c7a6d640191123 (patch)
tree1300b07bd551a888966a4d2d77636dc68a540351 /Lib/test/test_tcl.py
parent07940883796e71135723616f06a1405105c09571 (diff)
downloadcpython-abf68ce16474a2d252723099f1c7a6d640191123.zip
cpython-abf68ce16474a2d252723099f1c7a6d640191123.tar.gz
cpython-abf68ce16474a2d252723099f1c7a6d640191123.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 7485e58..da8f629 100644
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -416,7 +416,6 @@ class TclTest(unittest.TestCase):
self.assertEqual(passValue((1, '2', (3.4,))),
(1, '2', (3.4,)) if self.wantobjects else '1 2 3.4')
- @unittest.skipIf(sys.platform.startswith("aix"), 'Issue #21951: crashes on AIX')
def test_user_command(self):
result = None
def testfunc(arg):
@@ -444,9 +443,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')