Difference in logging SysLogHandler arguments between 2.6 and 2.7

This commit is contained in:
Roland Hedberg
2011-04-06 08:36:07 +02:00
parent 1a0fd81b8f
commit 3df2dcb7de

View File

@@ -233,7 +233,10 @@ def test_conf_syslog():
print handler.__dict__
assert handler.facility == "local3"
assert handler.address == ('localhost', 514)
assert handler.socktype == 2
if sys.version >= (2, 7):
assert handler.socktype == 2
else:
pass
assert root_logger.name == "pySAML2"
assert root_logger.level == 20