Commit 85e6c8c0 authored by Julien Muchembled's avatar Julien Muchembled

Always enable 'live_debug' in unit tests

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2675 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e7022ebe
...@@ -26,7 +26,7 @@ import MySQLdb ...@@ -26,7 +26,7 @@ import MySQLdb
import neo import neo
from mock import Mock from mock import Mock
from neo.lib import protocol from neo.lib import live_debug, protocol
from neo.lib.protocol import Packets from neo.lib.protocol import Packets
from neo.lib.util import getAddressType from neo.lib.util import getAddressType
from time import time, gmtime, sleep from time import time, gmtime, sleep
...@@ -44,6 +44,9 @@ IP_VERSION_FORMAT_DICT = { ...@@ -44,6 +44,9 @@ IP_VERSION_FORMAT_DICT = {
ADDRESS_TYPE = socket.AF_INET ADDRESS_TYPE = socket.AF_INET
live_debug.ENABLED = True
live_debug.register()
def buildUrlFromString(address): def buildUrlFromString(address):
try: try:
socket.inet_pton(socket.AF_INET6, address) socket.inet_pton(socket.AF_INET6, address)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment