mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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.
This commit is contained in:
commit
d5fd6188e2
3 changed files with 9 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue