[pypy-svn] r31051 - in pypy/dist/pypy/module/bz2: . test
rhymes at codespeak.net
rhymes at codespeak.net
Sat Aug 5 23:13:44 CEST 2006
Author: rhymes
Date: Sat Aug 5 23:13:41 2006
New Revision: 31051
Modified:
pypy/dist/pypy/module/bz2/interp_bz2.py
pypy/dist/pypy/module/bz2/test/test_bz2.py
Log:
softspace property is in too
Modified: pypy/dist/pypy/module/bz2/interp_bz2.py
==============================================================================
--- pypy/dist/pypy/module/bz2/interp_bz2.py (original)
+++ pypy/dist/pypy/module/bz2/interp_bz2.py Sat Aug 5 23:13:41 2006
@@ -652,9 +652,10 @@
unwrap_spec=_BZ2File.readline.unwrap_spec),
read = interp2app(_BZ2File.read, unwrap_spec=_BZ2File.read.unwrap_spec),
newlines = get_newlines,
+ closed = get_closed,
name = interp_attrproperty("filename", _BZ2File),
mode = interp_attrproperty("mode_string", _BZ2File),
- closed = get_closed,
+ softspace = interp_attrproperty("f_softspace", _BZ2File),
)
def BZ2File(space, filename, mode='r', buffering=-1, compresslevel=9):
Modified: pypy/dist/pypy/module/bz2/test/test_bz2.py
==============================================================================
--- pypy/dist/pypy/module/bz2/test/test_bz2.py (original)
+++ pypy/dist/pypy/module/bz2/test/test_bz2.py Sat Aug 5 23:13:41 2006
@@ -21,6 +21,7 @@
assert bz2f.name == "foo"
assert bz2f.newlines == None
assert bz2f.mode == "wb"
+ assert bz2f.softspace == False
assert bz2f.closed == False
bz2f.close()
assert bz2f.closed == True
More information about the Pypy-commit
mailing list