Remove redundent close call

This commit is contained in:
Daniel A. Wozniak 2018-04-26 13:47:11 -07:00
parent b2ae5889b7
commit e37a93a1ca
No known key found for this signature in database
GPG Key ID: 166B9D2C06C82D61

View File

@ -102,7 +102,6 @@ class SSHAuthKeyTestCase(TestCase, LoaderModuleMockMixin):
# Add empty line for #41335
_fh.write(empty_line)
_fh.write('{0} {1} {2} {3}'.format(options, enc, key, email))
_fh.close()
with patch.dict(ssh.__salt__, {'user.info': MagicMock(return_value={})}):
with patch('salt.modules.ssh._get_config_file', MagicMock(return_value=temp_file.name)):