Commit d5455071 authored by Berker Peksag's avatar Berker Peksag

Fix test_access_denied in 3.5

parent 38485592
...@@ -440,7 +440,8 @@ class StatAttributeTests(unittest.TestCase): ...@@ -440,7 +440,8 @@ class StatAttributeTests(unittest.TestCase):
# supports file ACLs. # supports file ACLs.
fname = os.path.join(os.environ['TEMP'], self.fname) fname = os.path.join(os.environ['TEMP'], self.fname)
self.addCleanup(support.unlink, fname) self.addCleanup(support.unlink, fname)
create_file(fname, b'ABC') with open(fname, 'xb', 0) as fp:
fp.write(b'ABC')
# Deny the right to [S]YNCHRONIZE on the file to # Deny the right to [S]YNCHRONIZE on the file to
# force CreateFile to fail with ERROR_ACCESS_DENIED. # force CreateFile to fail with ERROR_ACCESS_DENIED.
DETACHED_PROCESS = 8 DETACHED_PROCESS = 8
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment