summaryrefslogtreecommitdiff
path: root/Lib/test/test_tcl.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-11 10:57:13 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-11 10:57:13 +0300
commitacd512fd6119ad8496d63a074e14a628d3c8632e (patch)
tree36e8d91595358bfbe0c91c2e6e6531898c11ee51 /Lib/test/test_tcl.py
parentd894cfc302e44705d616df911ad7a544b3f87abe (diff)
downloadcpython-acd512fd6119ad8496d63a074e14a628d3c8632e.tar.gz
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 7485e58d85..da8f6299d6 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')