mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
d0217ab660
commit
4a1c7d2c36
|
@ -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')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue