]> granicus.if.org Git - python/commitdiff
Test syslog.openlog() without args to test syslog_get_argv()
authorChristian Heimes <christian@cheimes.de>
Thu, 5 Dec 2013 12:56:56 +0000 (13:56 +0100)
committerChristian Heimes <christian@cheimes.de>
Thu, 5 Dec 2013 12:56:56 +0000 (13:56 +0100)
Lib/test/test_syslog.py

index 4e7621e5ec2fe406cd5ad52a15e8482f2885e697..b7fd2bdabb5e1f245a5f0bd26da89dc95c41814b 100644 (file)
@@ -32,6 +32,10 @@ class Test(unittest.TestCase):
     def test_log_upto(self):
         syslog.LOG_UPTO(syslog.LOG_INFO)
 
+    def test_openlog_noargs(self):
+        syslog.openlog()
+        syslog.syslog('test message from python test_syslog')
+
 def test_main():
     support.run_unittest(__name__)