Skip to content

Commit 82c4b3f

Browse files
committed
test_syslog crlf -> lf
1 parent 2d27f21 commit 82c4b3f

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

Lib/test/test_syslog.py

+42-42
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
2-
from test.support import import_helper
3-
syslog = import_helper.import_module("syslog") #skip if not supported
4-
import unittest
5-
6-
# XXX(nnorwitz): This test sucks. I don't know of a platform independent way
7-
# to verify that the messages were really logged.
8-
# The only purpose of this test is to verify the code doesn't crash or leak.
9-
10-
class Test(unittest.TestCase):
11-
12-
# TODO: RUSTPYTHON
13-
@unittest.expectedFailure
14-
def test_openlog(self):
15-
syslog.openlog('python')
16-
# Issue #6697.
17-
self.assertRaises(UnicodeEncodeError, syslog.openlog, '\uD800')
18-
19-
def test_syslog(self):
20-
syslog.openlog('python')
21-
syslog.syslog('test message from python test_syslog')
22-
syslog.syslog(syslog.LOG_ERR, 'test error from python test_syslog')
23-
24-
def test_closelog(self):
25-
syslog.openlog('python')
26-
syslog.closelog()
27-
28-
def test_setlogmask(self):
29-
syslog.setlogmask(syslog.LOG_DEBUG)
30-
31-
def test_log_mask(self):
32-
syslog.LOG_MASK(syslog.LOG_INFO)
33-
34-
def test_log_upto(self):
35-
syslog.LOG_UPTO(syslog.LOG_INFO)
36-
37-
def test_openlog_noargs(self):
38-
syslog.openlog()
39-
syslog.syslog('test message from python test_syslog')
40-
41-
if __name__ == "__main__":
42-
unittest.main()
1+
2+
from test.support import import_helper
3+
syslog = import_helper.import_module("syslog") #skip if not supported
4+
import unittest
5+
6+
# XXX(nnorwitz): This test sucks. I don't know of a platform independent way
7+
# to verify that the messages were really logged.
8+
# The only purpose of this test is to verify the code doesn't crash or leak.
9+
10+
class Test(unittest.TestCase):
11+
12+
# TODO: RUSTPYTHON
13+
@unittest.expectedFailure
14+
def test_openlog(self):
15+
syslog.openlog('python')
16+
# Issue #6697.
17+
self.assertRaises(UnicodeEncodeError, syslog.openlog, '\uD800')
18+
19+
def test_syslog(self):
20+
syslog.openlog('python')
21+
syslog.syslog('test message from python test_syslog')
22+
syslog.syslog(syslog.LOG_ERR, 'test error from python test_syslog')
23+
24+
def test_closelog(self):
25+
syslog.openlog('python')
26+
syslog.closelog()
27+
28+
def test_setlogmask(self):
29+
syslog.setlogmask(syslog.LOG_DEBUG)
30+
31+
def test_log_mask(self):
32+
syslog.LOG_MASK(syslog.LOG_INFO)
33+
34+
def test_log_upto(self):
35+
syslog.LOG_UPTO(syslog.LOG_INFO)
36+
37+
def test_openlog_noargs(self):
38+
syslog.openlog()
39+
syslog.syslog('test message from python test_syslog')
40+
41+
if __name__ == "__main__":
42+
unittest.main()

0 commit comments

Comments
 (0)