Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-non-interactive-wsgi @ 5384:e3a0c092b4e2
Allow tests to run in parallel.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 05 Oct 2007 12:17:01 -0700 |
parents | 8c5ef3b87cb1 |
children |
comparison
equal
deleted
inserted
replaced
5383:7cdc896fdcd5 | 5384:e3a0c092b4e2 |
---|---|
13 from mercurial.hgweb.hgweb_mod import hgweb | 13 from mercurial.hgweb.hgweb_mod import hgweb |
14 from mercurial.hgweb.request import _wsgirequest | 14 from mercurial.hgweb.request import _wsgirequest |
15 from mercurial.ui import ui | 15 from mercurial.ui import ui |
16 from mercurial import hg | 16 from mercurial import hg |
17 from StringIO import StringIO | 17 from StringIO import StringIO |
18 import sys | 18 import os, sys |
19 | 19 |
20 class FileLike(object): | 20 class FileLike(object): |
21 def __init__(self, real): | 21 def __init__(self, real): |
22 self.real = real | 22 self.real = real |
23 def fileno(self): | 23 def fileno(self): |
56 'REQUEST_METHOD': 'GET', | 56 'REQUEST_METHOD': 'GET', |
57 'SCRIPT_NAME': '', | 57 'SCRIPT_NAME': '', |
58 'PATH_INFO': '', | 58 'PATH_INFO': '', |
59 'QUERY_STRING': '', | 59 'QUERY_STRING': '', |
60 'SERVER_NAME': '127.0.0.1', | 60 'SERVER_NAME': '127.0.0.1', |
61 'SERVER_PORT': '20059', | 61 'SERVER_PORT': os.environ['HGPORT'], |
62 'SERVER_PROTOCOL': 'HTTP/1.0' | 62 'SERVER_PROTOCOL': 'HTTP/1.0' |
63 } | 63 } |
64 | 64 |
65 _wsgirequest(hgweb('.'), env, startrsp) | 65 _wsgirequest(hgweb('.'), env, startrsp) |
66 print '---- ERRORS' | 66 print '---- ERRORS' |