~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Lib/test/test_grp.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        namei = 0
58
58
        fakename = allnames[namei]
59
59
        while fakename in bynames:
60
 
            chars = map(None, fakename)
 
60
            chars = list(fakename)
61
61
            for i in xrange(len(chars)):
62
62
                if chars[i] == 'z':
63
63
                    chars[i] = 'A'
74
74
                except IndexError:
75
75
                    # should never happen... if so, just forget it
76
76
                    break
77
 
            fakename = ''.join(map(None, chars))
 
77
            fakename = ''.join(chars)
78
78
 
79
79
        self.assertRaises(KeyError, grp.getgrnam, fakename)
80
80