From 0d0da44d7b24ece032f6c4c23c8e48bd6f7a15a8 2014-09-30 21:11:34 From: Thomas Kluyver Date: 2014-09-30 21:11:34 Subject: [PATCH] Interpret another error as missing symlink support on Windows This occurs if the system and Python support symlinks, but the user does not have permission to create them. --- diff --git a/IPython/utils/tests/test_io.py b/IPython/utils/tests/test_io.py index a72207c..a76179f 100644 --- a/IPython/utils/tests/test_io.py +++ b/IPython/utils/tests/test_io.py @@ -144,7 +144,10 @@ def test_atomic_writing(): try: os.symlink(f1, f2) have_symlink = True - except (AttributeError, NotImplementedError): + except (AttributeError, NotImplementedError, OSError): + # AttributeError: Python doesn't support it + # NotImplementedError: The system doesn't support it + # OSError: The user lacks the privilege (Windows) have_symlink = False with nt.assert_raises(CustomExc):