1. Tobias Pape
  2. pypy

Commits

Brian Kearns  committed 3d01ddb

fix test_pwd on 32bit

  • Participants
  • Parent commits 646404c
  • Branches stdlib-2.7.6

Comments (0)

Files changed (1)

File pypy/module/pwd/interp_pwd.py

View file
  • Ignore whitespace
     w_tuple = space.newtuple([
         space.wrap(rffi.charp2str(pw.c_pw_name)),
         space.wrap(rffi.charp2str(pw.c_pw_passwd)),
-        space.wrap(pw.c_pw_uid),
-        space.wrap(pw.c_pw_gid),
+        space.int(space.wrap(pw.c_pw_uid)),
+        space.int(space.wrap(pw.c_pw_gid)),
         space.wrap(rffi.charp2str(pw.c_pw_gecos)),
         space.wrap(rffi.charp2str(pw.c_pw_dir)),
         space.wrap(rffi.charp2str(pw.c_pw_shell)),