Skip to content

Commit

Permalink
change permissions in test to read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Schott committed Jul 13, 2021
1 parent c1e26ae commit 7bf2bb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_emitter.py
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.

import os
import stat
import time
import pytest
import logging
Expand Down Expand Up @@ -200,7 +201,9 @@ def test_chomod():
mkfile(p('a'))
start_watching()

os.chmod(p('a'), 0o744)
# Note: We use S_IREAD here because chmod on Windows only
# allows setting the read-only flag.
os.chmod(p('a'), stat.S_IREAD)

expect_event(FileModifiedEvent(p('a')))

Expand Down

0 comments on commit 7bf2bb6

Please sign in to comment.