Show More
@@ -56,9 +56,7 b' class KernelSpecTests(unittest.TestCase):' | |||||
56 | kernel_name='tstinstalled', |
|
56 | kernel_name='tstinstalled', | |
57 | replace=True, user=True) |
|
57 | replace=True, user=True) | |
58 |
|
58 | |||
59 | @onlyif(kernelspec.find_install_prefix() in {'/usr', '/usr/local'} |
|
59 | @onlyif(os.name != 'nt' and not os.access('/usr/local/share', os.W_OK), "needs Unix system without root privileges") | |
60 | and not os.access('/usr/local/share', os.W_OK), |
|
|||
61 | "needs Unix system without root privileges") |
|
|||
62 | def test_cant_install_kernel_spec(self): |
|
60 | def test_cant_install_kernel_spec(self): | |
63 | with self.assertRaises(OSError): |
|
61 | with self.assertRaises(OSError): | |
64 | self.ksm.install_kernel_spec(self.installable_kernel, |
|
62 | self.ksm.install_kernel_spec(self.installable_kernel, |
General Comments 0
You need to be logged in to leave comments.
Login now