Commit 55e4d885 authored by Victor Stinner's avatar Victor Stinner

Try to fix test_spwd on OpenIndiana

Issue #18787: try to get the "root" entry which should exist on all UNIX
instead of "bin" which doesn't exist on OpenIndiana.
parent 6e9ca1bc
......@@ -62,7 +62,7 @@ class TestSpwdNonRoot(unittest.TestCase):
def test_getspnam_exception(self):
with self.assertRaises(PermissionError) as cm:
spwd.getspnam('bin')
spwd.getspnam('root')
self.assertEqual(str(cm.exception), '[Errno 13] Permission denied')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment