##// END OF EJS Templates
tests: add some b prefixes in test-http-bundle1.t...
Augie Fackler -
r36270:f718e8ec default
parent child Browse files
Show More
@@ -68,7 +68,7 b' try to clone via stream but missing requ'
68 $ cat > $TESTTMP/removesupportedformat.py << EOF
68 $ cat > $TESTTMP/removesupportedformat.py << EOF
69 > from mercurial import localrepo
69 > from mercurial import localrepo
70 > def extsetup(ui):
70 > def extsetup(ui):
71 > localrepo.localrepository.supportedformats.remove('generaldelta')
71 > localrepo.localrepository.supportedformats.remove(b'generaldelta')
72 > EOF
72 > EOF
73
73
74 $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --stream http://localhost:$HGPORT/ copy3
74 $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --stream http://localhost:$HGPORT/ copy3
@@ -181,7 +181,8 b' test http authentication'
181 > if not auth:
181 > if not auth:
182 > raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, 'who',
182 > raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, 'who',
183 > [('WWW-Authenticate', 'Basic Realm="mercurial"')])
183 > [('WWW-Authenticate', 'Basic Realm="mercurial"')])
184 > if base64.b64decode(auth.split()[1]).split(':', 1) != ['user', 'pass']:
184 > if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user',
185 > b'pass']:
185 > raise common.ErrorResponse(common.HTTP_FORBIDDEN, 'no')
186 > raise common.ErrorResponse(common.HTTP_FORBIDDEN, 'no')
186 > def extsetup():
187 > def extsetup():
187 > common.permhooks.insert(0, perform_authentication)
188 > common.permhooks.insert(0, perform_authentication)
General Comments 0
You need to be logged in to leave comments. Login now