Author: mattip <matti.pi...@gmail.com> Branch: Changeset: r71315:777bfc76bd25 Date: 2014-05-06 08:41 +0300 http://bitbucket.org/pypy/pypy/changeset/777bfc76bd25/
Log: fix test diff --git a/rpython/translator/goal/richards.py b/rpython/translator/goal/richards.py --- a/rpython/translator/goal/richards.py +++ b/rpython/translator/goal/richards.py @@ -102,13 +102,13 @@ self.task_waiting = False self.task_holding = False return self - + def waitingWithPacket(self): self.packet_pending = True self.task_waiting = True self.task_holding = False return self - + def isPacketPending(self): return self.packet_pending @@ -154,6 +154,7 @@ self.holdCount = 0 self.qpktCount = 0 +taskWorkArea = TaskWorkArea() class Task(TaskState): @@ -235,7 +236,7 @@ if t is None: raise Exception("Bad task id %d" % id) return t - + # DeviceTask @@ -309,7 +310,7 @@ else: i.control = i.control/2 ^ 0xd008 return self.release(I_DEVB) - + # WorkTask @@ -384,7 +385,7 @@ wkq = None; DeviceTask(I_DEVA, 4000, wkq, TaskState().waiting(), DeviceTaskRec()); DeviceTask(I_DEVB, 5000, wkq, TaskState().waiting(), DeviceTaskRec()); - + schedule() if taskWorkArea.holdCount == 9297 and taskWorkArea.qpktCount == 23246: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit