[Python-checkins] cpython: Try to fix test_spwd on OpenIndiana

victor.stinner python-checkins at python.org
Wed Mar 23 13:47:23 EDT 2016


https://hg.python.org/cpython/rev/430af393d8f1
changeset:   100702:430af393d8f1
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Mar 23 18:45:55 2016 +0100
summary:
  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.

files:
  Lib/test/test_spwd.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_spwd.py b/Lib/test/test_spwd.py
--- a/Lib/test/test_spwd.py
+++ b/Lib/test/test_spwd.py
@@ -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')
 
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list