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):