diff options
author | Chad Smith <chad.smith@canonical.com> | 2018-03-16 15:06:53 -0600 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2018-03-16 15:06:53 -0600 |
commit | 7ce839f846de705980839f9c7851bd0fd7353aad (patch) | |
tree | 6f1cc91cbf5733b60dc8c656242267218857ff50 /cloudinit | |
parent | c6f153ee15d2eea350652c0c5111f0ae3bb57561 (diff) | |
download | vyos-cloud-init-7ce839f846de705980839f9c7851bd0fd7353aad.tar.gz vyos-cloud-init-7ce839f846de705980839f9c7851bd0fd7353aad.zip |
tests: fix flakes warning for unused variable
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/config/tests/test_snap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/tests/test_snap.py b/cloudinit/config/tests/test_snap.py index 3a2b68f3..cb1205e9 100644 --- a/cloudinit/config/tests/test_snap.py +++ b/cloudinit/config/tests/test_snap.py @@ -445,7 +445,7 @@ class TestHandle(CiTestCase): 'snap': {'commands': ['echo "HI" >> %s' % outfile, 'echo "MOM" >> %s' % outfile]}} mock_path = 'cloudinit.config.cc_snap.sys.stderr' - with mock.patch(mock_path, new_callable=StringIO) as m_stderr: + with mock.patch(mock_path, new_callable=StringIO): handle('snap', cfg=cfg, cloud=None, log=self.logger, args=None) self.assertEqual('HI\nMOM\n', util.load_file(outfile)) |