Use Python 3.x compatible octal literal notation

0o755 is accepted by Python 2.6 and newer (did not
check older versions)

Change-Id: I764fb56f8ae26c63981a96e1d988d6da37e1bd02
This commit is contained in:
Dirk Mueller 2013-06-08 15:06:56 +02:00
parent 1dbba71e00
commit cf511958ac

View File

@ -114,7 +114,7 @@ echo $runs > "$1"
exit 1
''')
fp.close()
os.chmod(tmpfilename, 0755)
os.chmod(tmpfilename, 0o755)
self.assertRaises(processutils.ProcessExecutionError,
processutils.execute,
tmpfilename, tmpfilename2, attempts=10,
@ -159,7 +159,7 @@ echo foo > "$1"
grep foo
""")
fp.close()
os.chmod(tmpfilename, 0755)
os.chmod(tmpfilename, 0o755)
processutils.execute(tmpfilename,
tmpfilename2,
process_input='foo',