commit 322f139e9e4435235a690418e69d65ee0e608bb0 Author: Thomas Goirand Date: Sun Oct 18 14:50:10 2020 +0200 Revert patching _syscmd_uname The commit: Ic48aed13d9ce262cb0d06ccc1d7c79f2fd2a365a patched _syscmd_uname in an attempt to ease development on MacOS X, however, this non-public function was removed from Python 3.9, and now, tests are failing with this version of Python. Therefore, this patch removes the hack and restores sanity. Change-Id: Ifa73c387ac1204429f30dbf755ca044761db810e diff --git a/ironic/tests/unit/api/controllers/v1/test_types.py b/ironic/tests/unit/api/controllers/v1/test_types.py index 40f8ea0..63d067b 100644 --- a/ironic/tests/unit/api/controllers/v1/test_types.py +++ b/ironic/tests/unit/api/controllers/v1/test_types.py @@ -16,7 +16,6 @@ # under the License. from http import client as http_client -import platform from unittest import mock from pecan import rest @@ -121,7 +120,6 @@ class TestJsonPatchType(api_base.BaseApiTest): root_controller = ('ironic.tests.unit.api.controllers.v1.' 'test_types.MyRoot') - @mock.patch.object(platform, '_syscmd_uname', lambda *x: '') def setUp(self): super(TestJsonPatchType, self).setUp()