summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGraham Dumpleton <Graham.Dumpleton@gmail.com>2016-08-16 14:35:40 +1000
committerGraham Dumpleton <Graham.Dumpleton@gmail.com>2016-08-16 14:35:40 +1000
commit19d75b338600a127aff58709cb712c378379507f (patch)
treea0f7f89ab246e73acdc5f6c02dcb00a4ac0d64ca /tests
parent5674f98150c80b85d46bf71f00865af5abcfe57e (diff)
downloadmod_wsgi-19d75b338600a127aff58709cb712c378379507f.tar.gz
Fix crashes in associating stdout/stderr with a request on Python 3.
Diffstat (limited to 'tests')
-rw-r--r--tests/environ.wsgi9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/environ.wsgi b/tests/environ.wsgi
index 59694eb..dea3285 100644
--- a/tests/environ.wsgi
+++ b/tests/environ.wsgi
@@ -13,9 +13,12 @@ import mod_wsgi
import apache
def application(environ, start_response):
- print('global message')
- print('request message', file=environ['wsgi.errors'])
- print('queued message', end='')
+ print('global message #1')
+ print('request message #1', file=environ['wsgi.errors'])
+ print('global message #2')
+ print('request message #2', file=environ['wsgi.errors'])
+ print('queued message #1', '+', sep="", end='')
+ print('queued message #2', end='')
headers = []
headers.append(('Content-Type', 'text/plain; charset="UTF-8"'))