From: Martin v. Löwis Date: Sun, 22 Oct 2006 13:45:13 +0000 (+0000) Subject: Remove passwd.adjunct.byname from list of maps X-Git-Tag: v2.6a1~2538 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e97c75966021bbcb2ef219e6602aea80c7b06ed9;p=thirdparty%2FPython%2Fcpython.git Remove passwd.adjunct.byname from list of maps for test_nis. Will backport to 2.5. --- diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py index f5224fec3a46..74ceeea910d9 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: