Enable H302 hacking check
This change requires hacking >0.5.5 Change-Id: Ic36fa0502548335d433f3fbe663854523dd04397
This commit is contained in:
parent
46e659b2ff
commit
9329d4c7c0
|
@ -28,7 +28,7 @@ from eventlet import semaphore
|
|||
from oslo.config import cfg
|
||||
|
||||
from openstack.common import fileutils
|
||||
from openstack.common.gettextutils import _
|
||||
from openstack.common.gettextutils import _ # noqa
|
||||
from openstack.common import local
|
||||
from openstack.common import log as logging
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import signal
|
|||
from eventlet.green import subprocess
|
||||
from eventlet import greenthread
|
||||
|
||||
from openstack.common.gettextutils import _
|
||||
from openstack.common.gettextutils import _ # noqa
|
||||
from openstack.common import log as logging
|
||||
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import fixtures
|
|||
import os
|
||||
import tempfile
|
||||
|
||||
from six import StringIO
|
||||
import six
|
||||
|
||||
from openstack.common import processutils
|
||||
from tests import utils
|
||||
|
@ -214,7 +214,7 @@ class FakeSshChannel(object):
|
|||
return self.rc
|
||||
|
||||
|
||||
class FakeSshStream(StringIO):
|
||||
class FakeSshStream(six.StringIO):
|
||||
def setup_channel(self, rc):
|
||||
self.channel = FakeSshChannel(rc)
|
||||
|
||||
|
@ -226,9 +226,9 @@ class FakeSshConnection(object):
|
|||
def exec_command(self, cmd):
|
||||
stdout = FakeSshStream('stdout')
|
||||
stdout.setup_channel(self.rc)
|
||||
return (StringIO(),
|
||||
return (six.StringIO(),
|
||||
stdout,
|
||||
StringIO('stderr'))
|
||||
six.StringIO('stderr'))
|
||||
|
||||
|
||||
class SshExecuteTestCase(utils.BaseTestCase):
|
||||
|
|
Loading…
Reference in New Issue