Remove workaround for Python < 3.7.4
... because now ironic supports only Python >= 3.8. Change-Id: I2f26f74ce8e549ee22dc0f84c3360993cff6a71e
This commit is contained in:
parent
39a7f58002
commit
d90e59057b
@ -136,10 +136,6 @@ class TestCase(oslo_test_base.BaseTestCase):
|
|||||||
# subprocess.Popen is a class
|
# subprocess.Popen is a class
|
||||||
self.patch(subprocess, 'Popen', DoNotCallPopen)
|
self.patch(subprocess, 'Popen', DoNotCallPopen)
|
||||||
|
|
||||||
if sys.version_info < (3, 7, 4):
|
|
||||||
_patch_mock_callable._old_func = mock._callable
|
|
||||||
mock._callable = _patch_mock_callable
|
|
||||||
|
|
||||||
def _set_config(self):
|
def _set_config(self):
|
||||||
self.cfg_fixture = self.useFixture(config_fixture.Config(CONF))
|
self.cfg_fixture = self.useFixture(config_fixture.Config(CONF))
|
||||||
self.config(use_stderr=False,
|
self.config(use_stderr=False,
|
||||||
|
Loading…
Reference in New Issue
Block a user