Merge pull request #7906 from minrk/skip-perm-test-windows

skip permission error -> 403 test on Windows
This commit is contained in:
Thomas Kluyver 2015-02-28 13:17:30 -08:00
commit 2b95955079

View File

@ -3,6 +3,7 @@
from __future__ import print_function
import os
import sys
import time
from nose import SkipTest
@ -134,6 +135,8 @@ class TestFileContentsManager(TestCase):
if hasattr(os, 'getuid'):
if os.getuid() == 0:
raise SkipTest("Can't test permissions as root")
if sys.platform.startswith('win'):
raise SkipTest("Can't test permissions on Windows")
with TemporaryDirectory() as td:
cm = FileContentsManager(root_dir=td)