Mercurial > hg
comparison tests/test-hgweb-non-interactive.t @ 39658:c20861b65688
py3: add b'' prefixes in tests/test-hgweb-non-interactive.t
# skip-blame because just b'' prefix
Differential Revision: https://phab.mercurial-scm.org/D4609
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Sun, 16 Sep 2018 20:20:59 +0530 |
parents | 27fb986e54d0 |
children | 5abc47d4ca6b |
comparison
equal
deleted
inserted
replaced
39657:2b9f315a4217 | 39658:c20861b65688 |
---|---|
63 > 'SERVER_NAME': '$LOCALIP', | 63 > 'SERVER_NAME': '$LOCALIP', |
64 > 'SERVER_PORT': os.environ['HGPORT'], | 64 > 'SERVER_PORT': os.environ['HGPORT'], |
65 > 'SERVER_PROTOCOL': 'HTTP/1.0' | 65 > 'SERVER_PROTOCOL': 'HTTP/1.0' |
66 > } | 66 > } |
67 > | 67 > |
68 > i = hgweb('.') | 68 > i = hgweb(b'.') |
69 > for c in i(env, startrsp): | 69 > for c in i(env, startrsp): |
70 > pass | 70 > pass |
71 > print('---- ERRORS') | 71 > print('---- ERRORS') |
72 > print(errors.getvalue()) | 72 > print(errors.getvalue()) |
73 > print('---- OS.ENVIRON wsgi variables') | 73 > print('---- OS.ENVIRON wsgi variables') |
74 > print(sorted([x for x in os.environ if x.startswith('wsgi')])) | 74 > print(sorted([x for x in os.environ if x.startswith('wsgi')])) |
75 > print('---- request.ENVIRON wsgi variables') | 75 > print('---- request.ENVIRON wsgi variables') |
76 > with i._obtainrepo() as repo: | 76 > with i._obtainrepo() as repo: |
77 > print(sorted([x for x in repo.ui.environ if x.startswith('wsgi')])) | 77 > print(sorted([x for x in repo.ui.environ if x.startswith(b'wsgi')])) |
78 > EOF | 78 > EOF |
79 $ $PYTHON request.py | 79 $ $PYTHON request.py |
80 ---- STATUS | 80 ---- STATUS |
81 200 Script output follows | 81 200 Script output follows |
82 ---- HEADERS | 82 ---- HEADERS |