comparison tests/test-largefiles.t @ 37744:1398c2d74d3a

tests: port inline cgi script in test-largefiles.t to python 3 Differential Revision: https://phab.mercurial-scm.org/D3353
author Augie Fackler <augie@google.com>
date Fri, 13 Apr 2018 22:27:16 -0400
parents 556984ae0005
children a936d1368fc5
comparison
equal deleted inserted replaced
37743:25136e03012e 37744:1398c2d74d3a
217 $ cat <<EOF > "$TESTTMP/hgweb.cgi" 217 $ cat <<EOF > "$TESTTMP/hgweb.cgi"
218 > #!$PYTHON 218 > #!$PYTHON
219 > from mercurial import demandimport; demandimport.enable() 219 > from mercurial import demandimport; demandimport.enable()
220 > from mercurial.hgweb import hgweb 220 > from mercurial.hgweb import hgweb
221 > from mercurial.hgweb import wsgicgi 221 > from mercurial.hgweb import wsgicgi
222 > application = hgweb('.', 'test repo') 222 > application = hgweb(b'.', b'test repo')
223 > wsgicgi.launch(application) 223 > wsgicgi.launch(application)
224 > EOF 224 > EOF
225 $ . "$TESTDIR/cgienv" 225 $ . "$TESTDIR/cgienv"
226 226
227 $ SCRIPT_NAME='' \ 227 $ SCRIPT_NAME='' \