[pypy-svn] r50827 - in pypy/dist/pypy: interpreter module/_file/test

arigo at codespeak.net arigo at codespeak.net
Mon Jan 21 13:14:05 CET 2008


Author: arigo
Date: Mon Jan 21 13:14:04 2008
New Revision: 50827

Modified:
   pypy/dist/pypy/interpreter/typedef.py
   pypy/dist/pypy/module/_file/test/test_file_extra.py
Log:
We forgot to expose the __doc__ of GetSetProperty.


Modified: pypy/dist/pypy/interpreter/typedef.py
==============================================================================
--- pypy/dist/pypy/interpreter/typedef.py	(original)
+++ pypy/dist/pypy/interpreter/typedef.py	Mon Jan 21 13:14:04 2008
@@ -411,6 +411,7 @@
                                            GetSetProperty, W_Root]),
     __name__ = interp_attrproperty('name', cls=GetSetProperty),
     __objclass__ = GetSetProperty(GetSetProperty.descr_get_objclass),
+    __doc__ = interp_attrproperty('doc', cls=GetSetProperty),
     )
 
 

Modified: pypy/dist/pypy/module/_file/test/test_file_extra.py
==============================================================================
--- pypy/dist/pypy/module/_file/test/test_file_extra.py	(original)
+++ pypy/dist/pypy/module/_file/test/test_file_extra.py	Mon Jan 21 13:14:04 2008
@@ -561,3 +561,6 @@
         raises(ValueError, iter, f)
         raises(ValueError, f.xreadlines)
         f.close()     # accepted as a no-op
+
+    def test_docstrings(self):
+        assert file.closed.__doc__ == 'True if the file is closed'



More information about the Pypy-commit mailing list