mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Py3 compatibility fixes
This commit is contained in:
parent
b791dd6971
commit
b555ddf658
1 changed files with 2 additions and 2 deletions
|
@ -338,7 +338,7 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
|
||||
def test_issue_14979_output_file_permissions(self):
|
||||
output_file = os.path.join(integration.TMP, 'issue-14979')
|
||||
current_umask = os.umask(0077)
|
||||
current_umask = os.umask(0o077)
|
||||
try:
|
||||
# Let's create an initial output file with some data
|
||||
self.run_script(
|
||||
|
@ -353,7 +353,7 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
stat1 = os.stat(output_file)
|
||||
|
||||
# Let's change umask
|
||||
os.umask(0777)
|
||||
os.umask(0o777)
|
||||
|
||||
self.run_script(
|
||||
'salt-call',
|
||||
|
|
Loading…
Add table
Reference in a new issue