summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGraham Dumpleton <Graham.Dumpleton@gmail.com>2017-01-21 14:16:00 +1100
committerGraham Dumpleton <Graham.Dumpleton@gmail.com>2017-01-21 14:16:00 +1100
commit0fc3da69e96f6f3ee392b1150494e337fca7934b (patch)
tree3c8c0363862ed07e7d94f4fe172e7d87028ab7e7 /tests
parent5a3ee55ad0ec61644cc37b289fbf772b625545c5 (diff)
downloadmod_wsgi-0fc3da69e96f6f3ee392b1150494e337fca7934b.tar.gz
Expose name attribute on the log object to avoid code failing which doesn’t cope with fact that it doesn’t have to exist.
Diffstat (limited to 'tests')
-rw-r--r--tests/environ.wsgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/environ.wsgi b/tests/environ.wsgi
index 5be59cb..c7b8dfd 100644
--- a/tests/environ.wsgi
+++ b/tests/environ.wsgi
@@ -37,6 +37,11 @@ def application(environ, start_response):
print('CWD: %s' % os.getcwd(), file=output)
print(file=output)
+ print('STDOUT:', sys.stdout.name, file=output)
+ print('STDERR:', sys.stderr.name, file=output)
+ print('ERRORS:', environ['wsgi.errors'].name, file=output)
+ print(file=output)
+
print('python.version: %r' % (sys.version,), file=output)
print('python.prefix: %r' % (sys.prefix,), file=output)
print('python.path: %r' % (sys.path,), file=output)