[pypy-svn] r34215 - pypy/branch/transparent-proxy/pypy/objspace/std/test
fijal at codespeak.net
fijal at codespeak.net
Sun Nov 5 11:38:18 CET 2006
Author: fijal
Date: Sun Nov 5 11:38:17 2006
New Revision: 34215
Modified:
pypy/branch/transparent-proxy/pypy/objspace/std/test/test_proxy_internals.py
Log:
Added some tests.
Modified: pypy/branch/transparent-proxy/pypy/objspace/std/test/test_proxy_internals.py
==============================================================================
--- pypy/branch/transparent-proxy/pypy/objspace/std/test/test_proxy_internals.py (original)
+++ pypy/branch/transparent-proxy/pypy/objspace/std/test/test_proxy_internals.py Sun Nov 5 11:38:17 2006
@@ -101,3 +101,10 @@
f = self.get_proxy(file)
f("/tmp/sth", "w").write("aaa")
assert open("/tmp/sth").read() == "aaa"
+
+ def test_fileobject(self):
+ f = open("/tmp/sth", "w")
+ fp = self.get_proxy(f)
+ fp.write("aaa")
+ fp.close()
+ assert open("/tmp/sth").read() == "aaa"
More information about the Pypy-commit
mailing list