Skip to content

Commit 24c2aa8

Browse files
committed
os.chmod() supports only read-only flag operations on Windows
1 parent 759d7a2 commit 24c2aa8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyflakes/test/test_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
checkRecursive,
1616
iterSourceCode,
1717
)
18-
from pyflakes.test.harness import TestCase
18+
from pyflakes.test.harness import TestCase, skipIf
1919

2020
if sys.version_info < (3,):
2121
from cStringIO import StringIO
@@ -419,6 +419,7 @@ def test_invalidEscape(self):
419419
self.assertHasErrors(
420420
sourcePath, [decoding_error])
421421

422+
@skipIf(sys.platform == 'win32', 'unsupported on Windows')
422423
def test_permissionDenied(self):
423424
"""
424425
If the source file is not readable, this is reported on standard

0 commit comments

Comments
 (0)