[pypy-svn] r63747 - pypy/branch/classdeco/pypy/tool/pytest

benjamin at codespeak.net benjamin at codespeak.net
Mon Apr 6 22:55:47 CEST 2009


Author: benjamin
Date: Mon Apr  6 22:55:47 2009
New Revision: 63747

Modified:
   pypy/branch/classdeco/pypy/tool/pytest/appsupport.py
Log:
merge r63743

Modified: pypy/branch/classdeco/pypy/tool/pytest/appsupport.py
==============================================================================
--- pypy/branch/classdeco/pypy/tool/pytest/appsupport.py	(original)
+++ pypy/branch/classdeco/pypy/tool/pytest/appsupport.py	Mon Apr  6 22:55:47 2009
@@ -26,7 +26,10 @@
         try:
             return self.space.str_w(self.w_file).__source__
         except AttributeError:
-            return py.code.Source(self.path.read(mode="rU"))
+            try:
+                return py.code.Source(self.path.read(mode="rU"))
+            except py.error.Error:
+                return "????"
     fullsource = property(fullsource, None, None, "Full source of AppCode")
 
     def getargs(self):



More information about the Pypy-commit mailing list