(original) (raw)

--- python2.4-2.4.2.orig/Lib/test/test_nis.py 2002-07-23 20:03:58.000000000 +0100 +++ python2.4-2.4.2/Lib/test/test_nis.py 2006-02-05 20:37:26.000000000 +0000 @@ -11,6 +11,7 @@ # only do this if running under the regression suite raise TestSkipped, msg +dom = nis.get_default_domain() done = 0 for nismap in maps: if verbose: @@ -23,6 +24,9 @@ continue if nis.match(k, nismap) != v: print "NIS match failed for key `%s' in map `%s'" % (k, nismap) + elif nis.match(k, nismap) != nis.match(k, nismap, domain = dom): + print "Comparison of implicit and explicit default domain nis " \ + "match failed." else: # just test the one key, otherwise this test could take a # very long time