[pypy-svn] r34134 - pypy/dist/pypy/rlib/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Fri Nov 3 18:04:23 CET 2006
Author: cfbolz
Date: Fri Nov 3 18:04:22 2006
New Revision: 34134
Modified:
pypy/dist/pypy/rlib/test/test_streamio.py
Log:
another test
Modified: pypy/dist/pypy/rlib/test/test_streamio.py
==============================================================================
--- pypy/dist/pypy/rlib/test/test_streamio.py (original)
+++ pypy/dist/pypy/rlib/test/test_streamio.py Fri Nov 3 18:04:22 2006
@@ -533,14 +533,16 @@
assert base.buf == "123456789ABCDEF\n0123"
self.interpret(f, [])
- def xtest_write_seek(self):
+ def test_write_seek(self):
base = TWriter()
filter = streamio.BufferingOutputStream(base, 4)
- filter.write("x"*6)
- filter.seek(3)
- filter.write("y"*2)
- filter.close()
- assert base.buf == "x"*3 + "y"*2 + "x"*1
+ def f():
+ filter.write("x"*6)
+ filter.seek(3)
+ filter.write("y"*2)
+ filter.close()
+ assert base.buf == "x"*3 + "y"*2 + "x"*1
+ self.interpret(f, [])
class TestLineBufferingOutputStream(BaseTestLineBufferingOutputStream):
def interpret(self, func, args, **kwds):
More information about the Pypy-commit
mailing list