[pypy-svn] r5272 - pypy/trunk/src/pypy/objspace/flow
arigo at codespeak.net
arigo at codespeak.net
Thu Jun 24 18:42:59 CEST 2004
Author: arigo
Date: Thu Jun 24 18:42:59 2004
New Revision: 5272
Modified:
pypy/trunk/src/pypy/objspace/flow/flowcontext.py
Log:
Useful assertion message for debugging.
Modified: pypy/trunk/src/pypy/objspace/flow/flowcontext.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/flow/flowcontext.py (original)
+++ pypy/trunk/src/pypy/objspace/flow/flowcontext.py Thu Jun 24 18:42:59 2004
@@ -55,7 +55,12 @@
def append(self, operation):
operation.result = self.listtoreplay[self.index].result
- assert operation == self.listtoreplay[self.index]
+ assert operation == self.listtoreplay[self.index], (
+ '\n'.join(["Not generating the same operation sequence:"] +
+ [str(s) for s in self.listtoreplay[:self.index]] +
+ [" ---> | while repeating we see here"] +
+ [" | %s" % operation] +
+ [str(s) for s in self.listtoreplay[self.index:]]))
self.index += 1
def finished(self):
More information about the Pypy-commit
mailing list