diff options
author | Eduard-Cristian Stefan <alexandrul.ct@gmail.com> | 2015-09-07 17:45:39 +0300 |
---|---|---|
committer | Eduard-Cristian Stefan <alexandrul.ct@gmail.com> | 2015-09-07 17:45:39 +0300 |
commit | 24c2aa82e00f83c1cb9f2bb8fb61a75125b46d7f (patch) | |
tree | c386014a00010ee6d13dc69c52f538c4c1e23e2e | |
parent | 759d7a20b8639297643888889c68684c1bd4e958 (diff) | |
download | pyflakes-24c2aa82e00f83c1cb9f2bb8fb61a75125b46d7f.tar.gz |
os.chmod() supports only read-only flag operations on Windows
-rw-r--r-- | pyflakes/test/test_api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyflakes/test/test_api.py b/pyflakes/test/test_api.py index fa8f594..34a59bc 100644 --- a/pyflakes/test/test_api.py +++ b/pyflakes/test/test_api.py @@ -15,7 +15,7 @@ from pyflakes.api import ( checkRecursive, iterSourceCode, ) -from pyflakes.test.harness import TestCase +from pyflakes.test.harness import TestCase, skipIf if sys.version_info < (3,): from cStringIO import StringIO @@ -419,6 +419,7 @@ foo = '\\xyz' self.assertHasErrors( sourcePath, [decoding_error]) + @skipIf(sys.platform == 'win32', 'unsupported on Windows') def test_permissionDenied(self): """ If the source file is not readable, this is reported on standard |