From 28c77fe4a966983b84aee8844ad9306436324b28 2011-08-04 17:56:21 From: MinRK Date: 2011-08-04 17:56:21 Subject: [PATCH] Skip writable_dir test on Windows It doesn't seem possible to create a dir that the owner can't write to on Windows, so the test doesn't run properly. If the test can be updated to reliably create/find a user read-only directory (probably via NTFS ACLs and win32security), then it can be unskipped. --- diff --git a/IPython/utils/tests/test_path.py b/IPython/utils/tests/test_path.py index d9158e3..b92c0a0 100644 --- a/IPython/utils/tests/test_path.py +++ b/IPython/utils/tests/test_path.py @@ -381,6 +381,7 @@ def test_get_long_path_name(): p = path.get_long_path_name('/usr/local') nt.assert_equals(p,'/usr/local') +@dec.skip_win32 # can't create not-user-writable dir on win @with_environment def test_not_writable_ipdir(): tmpdir = tempfile.mkdtemp()