summaryrefslogtreecommitdiff
path: root/Lib/test/test_syslog.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_syslog.py')
-rw-r--r--Lib/test/test_syslog.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_syslog.py b/Lib/test/test_syslog.py
index 028dcb49aa..4e7621e5ec 100644
--- a/Lib/test/test_syslog.py
+++ b/Lib/test/test_syslog.py
@@ -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')