]> granicus.if.org Git - python/commitdiff
Remove passwd.adjunct.byname from list of maps
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 22 Oct 2006 13:46:23 +0000 (13:46 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 22 Oct 2006 13:46:23 +0000 (13:46 +0000)
for test_nis.

Lib/test/test_nis.py
Misc/NEWS

index f5224fec3a4624b1875be1546246ec38061f3aac..74ceeea910d99b6ed9f91903eb480dc3d7b5d559 100644 (file)
@@ -11,6 +11,13 @@ except nis.error, msg:
     # only do this if running under the regression suite
     raise TestSkipped, msg
 
+try:
+    # On some systems, this map is only accessible to the
+    # super user
+    maps.remove("passwd.adjunct.byname")
+except ValueError:
+    pass
+
 done = 0
 for nismap in maps:
     if verbose:
index 0b7fdc376e595630075db6fc84197c3014c6791d..8b822e9d7557f0f7a7526036f93fc5b14174e7fd 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -108,6 +108,13 @@ Library
   the close_fds arg to subprocess.Popen is not supported).
 
 
+Tests
+-----
+
+- Remove passwd.adjunct.byname from list of maps
+  for test_nis.
+
+
 Build
 -----