summaryrefslogtreecommitdiff
path: root/Lib/test/test_nis.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-10-22 13:45:13 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-10-22 13:45:13 +0000
commite97c75966021bbcb2ef219e6602aea80c7b06ed9 (patch)
tree9e0a5adc76e82c4be4ef8238c2f33fb02b9614d7 /Lib/test/test_nis.py
parent1b2f627f96cdabcb4414b4785fcaf8bc309b941b (diff)
downloadcpython-git-e97c75966021bbcb2ef219e6602aea80c7b06ed9.tar.gz
Remove passwd.adjunct.byname from list of maps
for test_nis. Will backport to 2.5.
Diffstat (limited to 'Lib/test/test_nis.py')
-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: