diff --git a/IPython/kernel/tests/test_kernelspec.py b/IPython/kernel/tests/test_kernelspec.py index 710d8f9..5275943 100644 --- a/IPython/kernel/tests/test_kernelspec.py +++ b/IPython/kernel/tests/test_kernelspec.py @@ -57,7 +57,7 @@ class KernelSpecTests(unittest.TestCase): kernel_name='tstinstalled', replace=True) - @onlyif(os.name != 'nt' and not os.access('/usr/share', os.W_OK), "needs Unix system without root privileges") + @onlyif(os.name != 'nt' and not os.access('/usr/local/share', os.W_OK), "needs Unix system without root privileges") def test_cant_install_kernel_spec(self): with self.assertRaises(OSError): self.ksm.install_kernel_spec(self.installable_kernel,