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:
Victor Stinner 2016-03-23 18:45:55 +01:00
parent d0217ab660
commit 4a1c7d2c36
1 changed files with 1 additions and 1 deletions

View File

@ -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')