Fix py3 error

This commit is contained in:
twangboy 2017-11-13 16:03:17 -07:00
parent 0ff9fa498a
commit a27bb6993a
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -73,7 +73,7 @@ def _test_managed_file_mode_keep_helper(testcase, local=False):
# Get the current mode so that we can put the file back the way we
# found it when we're done.
grail_fs_mode = int(testcase.run_function('file.get_mode', [grail_fs_path]))
grail_fs_mode = int(testcase.run_function('file.get_mode', [grail_fs_path]), 8)
initial_mode = 504 # 0770 octal
new_mode_1 = 384 # 0600 octal
new_mode_2 = 420 # 0644 octal