Skip to content

Commit 8f788f6

Browse files
committed
Fix: expected order of open handles changed
1 parent 03e868f commit 8f788f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/GraalHPyDebugModuleBuiltins.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ private static Object[] getOpenDebugHandles(GraalHPyDebugContext debugContext, i
144144
openHandles.sort(Comparator.comparingLong(debugContext::getDebugHandleInfo));
145145
Object[] result = new Object[n];
146146
PythonObjectFactory factory = PythonObjectFactory.getUncached();
147-
// do reverse order to match order expected by HPy tests
148147
for (int i = 0; i < n; i++) {
149-
result[n - 1 - i] = factory.createDebugHandle(openHandles.get(i));
148+
result[i] = factory.createDebugHandle(openHandles.get(i));
150149
}
151150
return result;
152151
}

0 commit comments

Comments
 (0)