[pypy-svn] r62914 - pypy/trunk/pypy/rpython/lltypesystem

afa at codespeak.net afa at codespeak.net
Fri Mar 13 00:16:59 CET 2009


Author: afa
Date: Fri Mar 13 00:16:56 2009
New Revision: 62914

Modified:
   pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
Now that py.test use plugins, this option is not always defined,
specially when running bin/py.py


Modified: pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py	(original)
+++ pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py	Fri Mar 13 00:16:56 2009
@@ -574,7 +574,7 @@
                         return 0
                 return res
 
-            if conftest.option.usepdb:
+            if getattr(conftest.option, 'usepdb', False):
                 callback_original = callback
                 def callback(*cargs):
                     try:



More information about the Pypy-commit mailing list