Author: Armin Rigo <[email protected]>
Branch:
Changeset: r50295:15d89540a5c3
Date: 2011-12-08 11:07 +0000
http://bitbucket.org/pypy/pypy/changeset/15d89540a5c3/
Log: Add a failing test for fixedview() on a list of floats that expands
to too much stuff for now.
diff --git a/pypy/jit/codewriter/codewriter.py
b/pypy/jit/codewriter/codewriter.py
--- a/pypy/jit/codewriter/codewriter.py
+++ b/pypy/jit/codewriter/codewriter.py
@@ -13,7 +13,7 @@
class CodeWriter(object):
callcontrol = None # for tests
- debug = False
+ debug = True
def __init__(self, cpu=None, jitdrivers_sd=[]):
self.cpu = cpu
diff --git a/pypy/module/_multiprocessing/test/test_semaphore.py
b/pypy/module/_multiprocessing/test/test_semaphore.py
--- a/pypy/module/_multiprocessing/test/test_semaphore.py
+++ b/pypy/module/_multiprocessing/test/test_semaphore.py
@@ -70,8 +70,10 @@
maxvalue = 1
sem = SemLock(kind, value, maxvalue)
- assert sem.acquire()
- assert not sem.acquire(timeout=0.1)
+ res = sem.acquire()
+ assert res == True
+ res = sem.acquire(timeout=0.1)
+ assert res == False
def test_semaphore_rebuild(self):
from _multiprocessing import SemLock
diff --git a/pypy/module/pypyjit/test_pypy_c/test_containers.py
b/pypy/module/pypyjit/test_pypy_c/test_containers.py
--- a/pypy/module/pypyjit/test_pypy_c/test_containers.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_containers.py
@@ -116,4 +116,15 @@
guard_no_overflow(descr=...)
--TICK--
jump(p0, p1, p2, p3, p4, i35, p13, i7, descr=<Loop0>)
- """)
\ No newline at end of file
+ """)
+
+ def test_floatlist_unpack_without_calls(self):
+ def fn(n):
+ l = [2.3, 3.4, 4.5]
+ for i in range(n):
+ x, y, z = l # ID: look
+ #
+ log = self.run(fn, [1000])
+ loop, = log.loops_by_filename(self.filepath)
+ ops = loop.ops_by_id('look')
+ assert 'call' not in log.opnames(ops)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit