[pypy-svn] r9950 - in pypy/dist/pypy/module: sys2 test
briandorsey at codespeak.net
briandorsey at codespeak.net
Sun Mar 20 21:07:35 CET 2005
Author: briandorsey
Date: Sun Mar 20 21:07:34 2005
New Revision: 9950
Modified:
pypy/dist/pypy/module/sys2/__init__.py
pypy/dist/pypy/module/test/test_sysmodule.py
Log:
Added sys.__stdin__ and sys.__stdout__ to sys2.
Modified: pypy/dist/pypy/module/sys2/__init__.py
==============================================================================
--- pypy/dist/pypy/module/sys2/__init__.py (original)
+++ pypy/dist/pypy/module/sys2/__init__.py Sun Mar 20 21:07:34 2005
@@ -22,7 +22,9 @@
'maxunicode' : 'space.wrap(sys.maxunicode)',
'maxint' : 'space.wrap(sys.maxint)',
'stdin' : 'space.wrap(sys.stdin)',
+ '__stdin__' : 'space.wrap(sys.stdin)',
'stdout' : 'space.wrap(sys.stdout)',
+ '__stdout__' : 'space.wrap(sys.stdout)',
'stderr' : 'space.wrap(sys.stderr)',
'pypy_objspaceclass' : 'space.wrap(space.__class__.__name__)',
Modified: pypy/dist/pypy/module/test/test_sysmodule.py
==============================================================================
--- pypy/dist/pypy/module/test/test_sysmodule.py (original)
+++ pypy/dist/pypy/module/test/test_sysmodule.py Sun Mar 20 21:07:34 2005
@@ -9,8 +9,13 @@
b.cStringIO = cStringIO
b.sys = sys
+def test_stdin_exists(space):
+ space.sys.get('stdin')
+ space.sys.get('__stdin__')
+
def test_stdout_exists(space):
- assert space.sys.get('stdout')
+ space.sys.get('stdout')
+ space.sys.get('__stdout__')
class AppTestAppSysTests:
def test_path_exists(self):
More information about the Pypy-commit
mailing list