mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix some lint
This commit is contained in:
parent
ce282f9754
commit
4bc5b05586
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ import salt.config
|
|||
import salt.loader
|
||||
import salt.modules.win_lgpo as win_lgpo
|
||||
import salt.states.win_lgpo
|
||||
import salt.utils.files
|
||||
import salt.utils.platform
|
||||
import salt.utils.stringutils
|
||||
|
||||
|
@ -352,7 +353,7 @@ class WinLGPOGetPolicyADMXTestCase(TestCase, LoaderModuleMockMixin):
|
|||
'lgpo',
|
||||
'policy_defs')
|
||||
try:
|
||||
with open(bogus_fle, 'w+') as fh:
|
||||
with salt.utils.files.fopen(bogus_fle, 'w+') as fh:
|
||||
fh.write('<junk></junk>')
|
||||
# This function doesn't return anything (None), it just loads
|
||||
# the XPath structures into __context__. We're just making sure it
|
||||
|
|
Loading…
Add table
Reference in a new issue