[pypy-svn] r67298 - pypy/branch/pyjitpl5/pypy/jit/backend/test
arigo at codespeak.net
arigo at codespeak.net
Sat Aug 29 11:46:05 CEST 2009
Author: arigo
Date: Sat Aug 29 11:46:04 2009
New Revision: 67298
Modified:
pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py
Log:
Merge r67287 from pyjitpl5-c:
Fix the test, which would occasionally pass the same Box several times
in loop.inputargs.
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py Sat Aug 29 11:46:04 2009
@@ -65,7 +65,10 @@
[ConstInt(-13)], None)]
loop = TreeLoop('single op')
loop.operations = operations
- loop.inputargs = [box for box in valueboxes if isinstance(box, Box)]
+ loop.inputargs = []
+ for box in valueboxes:
+ if isinstance(box, Box) and box not in loop.inputargs:
+ loop.inputargs.append(box)
self.cpu.compile_operations(loop)
return loop
More information about the Pypy-commit
mailing list