Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r58124:07a3678977b9
Date: 2012-10-15 17:38 -0700
http://bitbucket.org/pypy/pypy/changeset/07a3678977b9/
Log: fdopen now resides in os
diff --git a/pypy/module/posix/test/test_posix2.py
b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -52,6 +52,7 @@
def setup_class(cls):
cls.space = space
cls.w_posix = space.appexec([], GET_POSIX)
+ cls.w_os = space.appexec([], "(): import os as m ; return m")
cls.w_path = space.wrap(str(path))
cls.w_path2 = space.wrap(str(path2))
cls.w_pdir = space.wrap(str(pdir))
@@ -844,10 +845,9 @@
assert hasattr(os, 'kill')
def test_pipe_flush(self):
- os = self.posix
- ffd, gfd = os.pipe()
- f = os.fdopen(ffd, 'r')
- g = os.fdopen(gfd, 'w')
+ ffd, gfd = self.posix.pipe()
+ f = self.os.fdopen(ffd, 'r')
+ g = self.os.fdopen(gfd, 'w')
g.write('he')
g.flush()
x = f.read(1)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit