Author: Brian Kearns <[email protected]>
Branch: use-file-star-for-file
Changeset: r73452:3a09b44f41ab
Date: 2014-09-11 04:21 -0400
http://bitbucket.org/pypy/pypy/changeset/3a09b44f41ab/
Log: fix cpyext test_file_writestring when running with fully buffered
stdout
diff --git a/pypy/module/cpyext/test/test_pyfile.py
b/pypy/module/cpyext/test/test_pyfile.py
--- a/pypy/module/cpyext/test/test_pyfile.py
+++ b/pypy/module/cpyext/test/test_pyfile.py
@@ -74,6 +74,7 @@
api.PyFile_WriteString(s, space.sys.get("stdout"))
finally:
rffi.free_charp(s)
+ space.call_method(space.sys.get("stdout"), "flush")
out, err = capfd.readouterr()
out = out.replace('\r\n', '\n')
assert out == "test\n"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit