Mercurial > hg-stable
changeset 9889:38864218c4cc
test-non-interactive-wsgi: make output deterministic
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 19 Nov 2009 21:59:06 +0100 |
parents | 510122bb3c7f |
children | 4f1ee228e577 |
files | tests/test-non-interactive-wsgi tests/test-non-interactive-wsgi.out |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-non-interactive-wsgi Thu Nov 19 15:54:57 2009 +0100 +++ b/tests/test-non-interactive-wsgi Thu Nov 19 21:59:06 2009 +0100 @@ -65,9 +65,9 @@ print '---- ERRORS' print errors.getvalue() print '---- OS.ENVIRON wsgi variables' -print [x for x in os.environ if x.startswith('wsgi')] +print sorted([x for x in os.environ if x.startswith('wsgi')]) print '---- request.ENVIRON wsgi variables' -print [x for x in i.repo.ui.environ if x.startswith('wsgi')] +print sorted([x for x in i.repo.ui.environ if x.startswith('wsgi')]) EOF python request.py
--- a/tests/test-non-interactive-wsgi.out Thu Nov 19 15:54:57 2009 +0100 +++ b/tests/test-non-interactive-wsgi.out Thu Nov 19 21:59:06 2009 +0100 @@ -13,4 +13,4 @@ ---- OS.ENVIRON wsgi variables [] ---- request.ENVIRON wsgi variables -['wsgi.input', 'wsgi.multithread', 'wsgi.version', 'wsgi.run_once', 'wsgi.errors', 'wsgi.multiprocess', 'wsgi.url_scheme'] +['wsgi.errors', 'wsgi.input', 'wsgi.multiprocess', 'wsgi.multithread', 'wsgi.run_once', 'wsgi.url_scheme', 'wsgi.version']