]> 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:45:13 +0000 (13:45 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 22 Oct 2006 13:45:13 +0000 (13:45 +0000)
for test_nis. Will backport to 2.5.

Lib/test/test_nis.py

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: