[pypy-svn] r38488 - pypy/dist/pypy

hpk at codespeak.net hpk at codespeak.net
Sun Feb 11 18:16:44 CET 2007


Author: hpk
Date: Sun Feb 11 18:16:43 2007
New Revision: 38488

Modified:
   pypy/dist/pypy/conftest.py
Log:
use the new per-project io-capturing facility
to have appdirect tests use "sys" capturing
instead of FD based.


Modified: pypy/dist/pypy/conftest.py
==============================================================================
--- pypy/dist/pypy/conftest.py	(original)
+++ pypy/dist/pypy/conftest.py	Sun Feb 11 18:16:43 2007
@@ -134,6 +134,11 @@
         and at interp-level (because we need to stick a space 
         at the class) ourselves. 
     """
+    def __init__(self, *args, **kwargs):
+        if option.runappdirect:
+            option.conf_iocapture = "sys" # pypy cannot do FD-based
+        super(Module, self).__init__(*args, **kwargs)
+
     def funcnamefilter(self, name): 
         if name.startswith('test_'):
             return not option.runappdirect



More information about the Pypy-commit mailing list