diff --git a/tests/unittests/test_data.py b/tests/unittests/test_data.py index 7fb9c3abc30..fb2b55e8e79 100644 --- a/tests/unittests/test_data.py +++ b/tests/unittests/test_data.py @@ -648,7 +648,9 @@ def test_include_bad_url(self, mock_sleep): util.load_file(ci.paths.get_ipath("cloud_config")) @mock.patch('cloudinit.url_helper.time.sleep') - @mock.patch('cloudinit.features.ERROR_ON_USER_DATA_FAILURE', False) + @mock.patch( + "cloudinit.user_data.features.ERROR_ON_USER_DATA_FAILURE", False + ) def test_include_bad_url_no_fail(self, mock_sleep): """Test #include with a bad URL and failure disabled""" bad_url = 'http://bad/forbidden'