Author: marky1991
Branch: py3.3
Changeset: r81709:63d18f9eccd3
Date: 2016-01-07 00:33 -0500
http://bitbucket.org/pypy/pypy/changeset/63d18f9eccd3/
Log: Remove this test as per 4d306d6.
diff --git a/pypy/interpreter/test/test_app_main.py
b/pypy/interpreter/test/test_app_main.py
--- a/pypy/interpreter/test/test_app_main.py
+++ b/pypy/interpreter/test/test_app_main.py
@@ -808,31 +808,6 @@
data = self.run('-S -i', expect_prompt=True, expect_banner=True)
assert 'copyright' not in data
- def test_non_interactive_stdout_fully_buffered(self):
- if os.name == 'nt':
- try:
- import __pypy__
- except:
- py.test.skip('app_main cannot run on non-pypy for windows')
- path = getscript(r"""
- import sys, time
- sys.stdout.write('\x00(STDOUT)\n\x00') # stays in buffers
- time.sleep(1)
- sys.stderr.write('\x00[STDERR]\n\x00')
- time.sleep(1)
- # stdout flushed automatically here
- """)
- cmdline = '%s -u "%s" %s' % (python3, app_main, path)
- print 'POPEN:', cmdline
- child_in, child_out_err = os.popen4(cmdline)
- data = child_out_err.read(11)
- # Py3 is always at least line buffered
- assert data == '\x00(STDOUT)\n\x00' # from stdout
- child_in.close()
- data = child_out_err.read(11)
- assert data == '\x00[STDERR]\n\x00' # from stderr
- child_out_err.close()
-
def test_non_interactive_stdout_unbuffered(self, monkeypatch):
monkeypatch.setenv('PYTHONUNBUFFERED', '1')
if os.name == 'nt':
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit