[pypy-svn] r34800 - pypy/dist/pypy/jit/timeshifter/test
pedronis at codespeak.net
pedronis at codespeak.net
Mon Nov 20 18:23:29 CET 2006
Author: pedronis
Date: Mon Nov 20 18:23:25 2006
New Revision: 34800
Modified:
pypy/dist/pypy/jit/timeshifter/test/test_timeshift.py
Log:
(arigo, arre, pedronis)
a new work in progress test about deepfrozen, and compile time tuples. the test in this form in not completely correct.
Modified: pypy/dist/pypy/jit/timeshifter/test/test_timeshift.py
==============================================================================
--- pypy/dist/pypy/jit/timeshifter/test/test_timeshift.py (original)
+++ pypy/dist/pypy/jit/timeshifter/test/test_timeshift.py Mon Nov 20 18:23:25 2006
@@ -1068,3 +1068,14 @@
res = self.timeshift(f, [0], [0], policy=P_NOVIRTUAL)
assert res == 42
self.check_insns({})
+
+ def test_green_tuple(self):
+ py.test.skip("WIP")
+ d = {(4, 5): 42, (6, 7): 12}
+ def f(a, b):
+ d1 = hint(d, deepfreeze=True)
+ return d1[a, b]
+
+ res = self.timeshift(f, [0, 4, 5], [0, 1, 2], policy=P_NOVIRTUAL)
+ assert res == 42
+ self.check_insns({})
More information about the Pypy-commit
mailing list