summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-10-22 13:46:23 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-10-22 13:46:23 +0000
commit920fa6a102f8d5f46a2e0552e85ae295882a92bb (patch)
treed69b28543b6f3b53e3bc7730d9f3e6d907687b52 /Lib/test
parent63a9b8b0679903ca1cfc17daf0a881c74a6ef1a0 (diff)
downloadcpython-git-920fa6a102f8d5f46a2e0552e85ae295882a92bb.tar.gz
Remove passwd.adjunct.byname from list of maps
for test_nis.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_nis.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py
index f5224fec3a..74ceeea910 100644
--- a/Lib/test/test_nis.py
+++ b/Lib/test/test_nis.py
@@ -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: