Commit a0f2936c authored by Vincent Pelletier's avatar Vincent Pelletier

Remove more unused imports found by pyflakes.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@772 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent aec0cb00
......@@ -16,8 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import unittest
import logging
from mock import Mock, ReturnValues, ReturnIterator
from mock import Mock, ReturnValues
from ZODB.POSException import StorageTransactionError, UndoError, ConflictError
from neo.tests.base import NeoTestBase
from neo.client.app import Application
......@@ -26,7 +25,6 @@ from neo.client.exception import NEOStorageError, NEOStorageNotFoundError, \
from neo import protocol
from neo.protocol import *
from neo.util import makeChecksum
from neo.pt import PartitionTable
import neo.connection
def _getMasterConnection(self):
......@@ -132,7 +130,6 @@ class ClientApplicationTests(NeoTestBase):
# common checks
def checkDispatcherRegisterCalled(self, app, conn):
from Queue import Queue
calls = app.dispatcher.mockGetNamedCalls('register')
self.assertEquals(len(calls), 1)
#self.assertEquals(calls[0].getParam(0), conn)
......
......@@ -15,26 +15,22 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import os
import unittest
import logging
import threading
from mock import Mock, ReturnValues
from neo.tests.base import NeoTestBase
from neo import protocol
from neo.protocol import Packet, UnexpectedPacketError, INVALID_UUID
from neo.protocol import ERROR, \
from neo.protocol import UnexpectedPacketError, INVALID_UUID
from neo.protocol import \
INVALID_PTID, STORAGE_NODE_TYPE, CLIENT_NODE_TYPE, MASTER_NODE_TYPE, \
RUNNING_STATE, BROKEN_STATE, TEMPORARILY_DOWN_STATE, DOWN_STATE, \
UP_TO_DATE_STATE, OUT_OF_DATE_STATE, FEEDING_STATE, DISCARDED_STATE
from neo.exception import ElectionFailure
RUNNING_STATE, BROKEN_STATE, TEMPORARILY_DOWN_STATE, \
UP_TO_DATE_STATE, FEEDING_STATE, DISCARDED_STATE
from neo.client.handlers.handler import BaseHandler
from neo.client.handlers.master import PrimaryBootstrapHandler, \
PrimaryNotificationsHandler, PrimaryAnswersHandler
from neo.client.handlers.storage import StorageBootstrapHandler, \
StorageAnswersHandler
from neo.node import StorageNode
from neo.util import dump
MARKER = []
......
......@@ -16,12 +16,10 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import unittest
from mock import Mock, ReturnValues
from neo.protocol import INVALID_UUID
from mock import Mock
from neo.tests.base import NeoTestBase
from neo.client.app import ConnectionPool
import os
class ConnectionPoolTests(NeoTestBase):
......
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