mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 19:26:25 +00:00
Does Windows behave if we restrict ourselves to *just* S_IREAD?
From CPython docs: > Note Although Windows supports chmod(), you can only set the file’s > read-only flag with it (via the stat.S_IWRITE and stat.S_IREAD constants or > a corresponding integer value). All other bits are ignored.
This commit is contained in:
parent
ff8906ecb2
commit
4ce2572ce9
@ -244,7 +244,7 @@ class TahoeLAFSSiteTests(SyncTestCase):
|
||||
# Another approach is to make the temp directory unwriteable and
|
||||
# observe the failure when an attempt is made to create a file there.
|
||||
# This is hardly a lovely solution but at least it's kind of simple.
|
||||
tempdir.chmod(0o550)
|
||||
tempdir.chmod(0o400)
|
||||
with self.assertRaises(OSError) as ctx:
|
||||
request.gotLength(request_body_size)
|
||||
raise Exception(
|
||||
|
Loading…
Reference in New Issue
Block a user