test-non-interactive-wsgi: make output deterministic
authorMartin Geisler <mg@lazybytes.net>
Thu, 19 Nov 2009 21:59:06 +0100
changeset 9889 38864218c4cc
parent 9888 510122bb3c7f
child 9890 4f1ee228e577
test-non-interactive-wsgi: make output deterministic
tests/test-non-interactive-wsgi
tests/test-non-interactive-wsgi.out
--- 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']