[py-svn] r50754 - py/branch/reporter-merge/py/code

fijal at codespeak.net fijal at codespeak.net
Fri Jan 18 17:31:09 CET 2008


Author: fijal
Date: Fri Jan 18 17:31:07 2008
New Revision: 50754

Modified:
   py/branch/reporter-merge/py/code/source.py
Log:
Fix a "problem" with pypy compiler which caused py.test -A to take
forever.


Modified: py/branch/reporter-merge/py/code/source.py
==============================================================================
--- py/branch/reporter-merge/py/code/source.py	(original)
+++ py/branch/reporter-merge/py/code/source.py	Fri Jan 18 17:31:07 2008
@@ -109,7 +109,7 @@
         for start in range(lineno, -1, -1):
             trylines = self.lines[start:lineno+1]
             # quick hack to indent the source and get it as a string in one go
-            trylines.insert(0, 'if 0:')
+            trylines.insert(0, 'def xxx():')
             trysource = '\n '.join(trylines)
             #              ^ space here
             try:


More information about the py-svn mailing list