[pypy-commit] pypy release-1.6.x: Fix for test_posix (how could it have ever worked!).

alex_gaynor noreply at buildbot.pypy.org
Sun Aug 14 17:57:27 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: release-1.6.x
Changeset: r46494:84929c2bfda8
Date: 2011-08-13 19:45 -0700
http://bitbucket.org/pypy/pypy/changeset/84929c2bfda8/

Log:	Fix for test_posix (how could it have ever worked!).

diff --git a/pypy/module/posix/interp_posix.py b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -473,7 +473,7 @@
         FIELDS = PORTABLE_STAT_FIELDS
     else:
         FIELDS = STAT_FIELDS    # also when not translating at all
-    return space.newlist([space.wrap(name) for name, _ in FIELDS])
+    return space.newlist([space.wrap(name) for _, (name, _) in FIELDS])
 
 
 class State:


More information about the pypy-commit mailing list