Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ac98a4e

Browse files
committed
Test syslog.openlog() without args to test syslog_get_argv()
1 parent db8f5c3 commit ac98a4e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_syslog.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ def test_log_mask(self):
3232
def test_log_upto(self):
3333
syslog.LOG_UPTO(syslog.LOG_INFO)
3434

35+
def test_openlog_noargs(self):
36+
syslog.openlog()
37+
syslog.syslog('test message from python test_syslog')
38+
3539
def test_main():
3640
support.run_unittest(__name__)
3741

0 commit comments

Comments
 (0)