diff options
Diffstat (limited to 'Lib/test/test_nis.py')
-rw-r--r-- | Lib/test/test_nis.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py index 0d345fe..b28a672 100644 --- a/Lib/test/test_nis.py +++ b/Lib/test/test_nis.py @@ -11,19 +11,19 @@ except nis.error, msg: done = 0 for nismap in maps: if verbose: - print nismap + print nismap mapping = nis.cat(nismap) for k, v in mapping.items(): - if verbose: - print ' ', k, v - if not k: - continue - if nis.match(k, nismap) <> v: - print "NIS match failed for key `%s' in map `%s'" % (k, nismap) - else: - # just test the one key, otherwise this test could take a - # very long time - done = 1 - break + if verbose: + print ' ', k, v + if not k: + continue + if nis.match(k, nismap) <> v: + print "NIS match failed for key `%s' in map `%s'" % (k, nismap) + else: + # just test the one key, otherwise this test could take a + # very long time + done = 1 + break if done: - break + break |