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