]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Try to fix test_spwd on OpenIndiana
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 23 Mar 2016 17:45:55 +0000 (18:45 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 23 Mar 2016 17:45:55 +0000 (18:45 +0100)
Issue #18787: try to get the "root" entry which should exist on all UNIX
instead of "bin" which doesn't exist on OpenIndiana.

Lib/test/test_spwd.py

index fca809ef3761eadc503afd27cf9c36f94e93877d..3a11a2d1d622a9ae30ce8ba059da55f8cb0ff3b2 100644 (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')