mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Issue #6697: Fixed instances of _PyUnicode_AsString() result not checked for NULL
This commit is contained in:
parent
1b2bd3b348
commit
e239d23e8c
13 changed files with 144 additions and 78 deletions
|
@ -11,6 +11,8 @@ class Test(unittest.TestCase):
|
|||
|
||||
def test_openlog(self):
|
||||
syslog.openlog('python')
|
||||
# Issue #6697.
|
||||
self.assertRaises(UnicodeEncodeError, syslog.openlog, '\uD800')
|
||||
|
||||
def test_syslog(self):
|
||||
syslog.openlog('python')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue