From 3df2dcb7de38aada20541b3fff724d8a10d3121b Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Wed, 6 Apr 2011 08:36:07 +0200 Subject: [PATCH] Difference in logging SysLogHandler arguments between 2.6 and 2.7 --- tests/test_31_config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_31_config.py b/tests/test_31_config.py index e628000..1e612bb 100644 --- a/tests/test_31_config.py +++ b/tests/test_31_config.py @@ -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