summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/config/tests/test_set_passwords.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cloudinit/config/tests/test_set_passwords.py b/cloudinit/config/tests/test_set_passwords.py
index 3b5cdd06..8247c388 100644
--- a/cloudinit/config/tests/test_set_passwords.py
+++ b/cloudinit/config/tests/test_set_passwords.py
@@ -74,6 +74,10 @@ class TestSetPasswordsHandle(CiTestCase):
with_logs = True
+ def setUp(self):
+ super(TestSetPasswordsHandle, self).setUp()
+ self.add_patch('cloudinit.config.cc_set_passwords.sys.stderr', 'm_err')
+
def test_handle_on_empty_config(self, *args):
"""handle logs that no password has changed when config is empty."""
cloud = self.tmp_cloud(distro='ubuntu')