changeset: 100702:430af393d8f1 user: Victor Stinner date: Wed Mar 23 18:45:55 2016 +0100 files: Lib/test/test_spwd.py description: 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. diff -r e19bbbcc43f2 -r 430af393d8f1 Lib/test/test_spwd.py --- a/Lib/test/test_spwd.py Wed Mar 23 13:40:14 2016 -0400 +++ b/Lib/test/test_spwd.py Wed Mar 23 18:45:55 2016 +0100 @@ -62,7 +62,7 @@ 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')