Add basic Python 3 tests
This uses `nose' to load and run tests for the time being, as testrepository tries to load everything, which is not possible currently. Until everything is Python 3 compatible, using `nose' will be simpler to list the specific files we want to run. Blueprint: make-python3-compatible Change-Id: I4c8dbf11ac8c6e0f25bc60a3e880a30bf87a60bd Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
@@ -21,7 +21,6 @@ import errno
|
||||
import socket
|
||||
|
||||
import eventlet
|
||||
import mox
|
||||
|
||||
from openstack.common import eventlet_backdoor
|
||||
from openstack.common.fixture import config
|
||||
@@ -56,7 +55,7 @@ class BackdoorPortTest(test.BaseTestCase):
|
||||
eventlet.listen(('localhost', 8800)).AndReturn(self.sock)
|
||||
self.sock.getsockname().AndReturn(('127.0.0.1', 8800))
|
||||
eventlet.spawn_n(eventlet.backdoor.backdoor_server, self.sock,
|
||||
locals=mox.IsA(dict))
|
||||
locals=moxstubout.mox.IsA(dict))
|
||||
self.mox.ReplayAll()
|
||||
port = eventlet_backdoor.initialize_if_enabled()
|
||||
self.assertEqual(port, 8800)
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
import datetime
|
||||
|
||||
from eventlet import greenthread
|
||||
import mox
|
||||
from six.moves import mox # noqa
|
||||
|
||||
from openstack.common import loopingcall
|
||||
from openstack.common import test
|
||||
|
||||
Reference in New Issue
Block a user