From d90e59057b25731ebd09f030513cb0d51f59dc58 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 17 Jul 2022 00:25:54 +0900 Subject: [PATCH] Remove workaround for Python < 3.7.4 ... because now ironic supports only Python >= 3.8. Change-Id: I2f26f74ce8e549ee22dc0f84c3360993cff6a71e --- ironic/tests/base.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ironic/tests/base.py b/ironic/tests/base.py index 1045b3d342..ba43461b67 100644 --- a/ironic/tests/base.py +++ b/ironic/tests/base.py @@ -136,10 +136,6 @@ class TestCase(oslo_test_base.BaseTestCase): # subprocess.Popen is a class 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): self.cfg_fixture = self.useFixture(config_fixture.Config(CONF)) self.config(use_stderr=False,