Skip to content

Commit 55e4d88

Browse files
committed
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.
1 parent 6e9ca1b commit 55e4d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_spwd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class TestSpwdNonRoot(unittest.TestCase):
6262

6363
def test_getspnam_exception(self):
6464
with self.assertRaises(PermissionError) as cm:
65-
spwd.getspnam('bin')
65+
spwd.getspnam('root')
6666
self.assertEqual(str(cm.exception), '[Errno 13] Permission denied')
6767

6868

0 commit comments

Comments
 (0)