From 940c225d7c38776261a703246c647ee383f03545 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 10 Apr 2011 20:53:27 +0000 Subject: [PATCH] few fixes --- lib/core/option.py | 2 +- lib/core/testing.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 45bd976ba..b72a9d3c6 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -778,7 +778,7 @@ def __setDNSCache(): kb.cache[args] = socket._getaddrinfo(*args, **kwargs) return kb.cache[args] - if socket.getaddrinfo != _getaddrinfo: + if not hasattr(socket, '_getaddrinfo'): socket._getaddrinfo = socket.getaddrinfo socket.getaddrinfo = _getaddrinfo diff --git a/lib/core/testing.py b/lib/core/testing.py index 5857d8ee7..fd70eb26f 100644 --- a/lib/core/testing.py +++ b/lib/core/testing.py @@ -75,10 +75,6 @@ def smokeTest(): return retVal def adjustValueType(tagName, value): - # as it's not part of optDict - if tagName == "technique": - value = int(value) - for family in optDict.keys(): for name, type_ in optDict[family].items(): if type(type_) == tuple: