From: Victor Stinner Date: Wed, 23 Mar 2016 17:45:55 +0000 (+0100) Subject: Try to fix test_spwd on OpenIndiana X-Git-Tag: v3.6.0a1~367 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a1c7d2c3699a0f201ec2bb277ebcadf3f863759;p=thirdparty%2FPython%2Fcpython.git 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 --git a/Lib/test/test_spwd.py b/Lib/test/test_spwd.py index fca809ef3761..3a11a2d1d622 100644 --- a/Lib/test/test_spwd.py +++ b/Lib/test/test_spwd.py @@ -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')