##// END OF EJS Templates
tests: ignore http tests that are known wontfix failures on python 2.4...
Mads Kiilerich -
r20384:c499fff7 default
parent child Browse files
Show More
@@ -248,6 +248,9 def has_pygments():
248 248 except ImportError:
249 249 return False
250 250
251 def has_python243():
252 return sys.version_info >= (2, 4, 3)
253
251 254 def has_outer_repo():
252 255 # failing for other reasons than 'no repo' imply that there is a repo
253 256 return not matchoutput('hg root 2>&1',
@@ -320,6 +323,7 checks = {
320 323 "p4": (has_p4, "Perforce server and client"),
321 324 "pyflakes": (has_pyflakes, "Pyflakes python linter"),
322 325 "pygments": (has_pygments, "Pygments source highlighting library"),
326 "python243": (has_python243, "python >= 2.4.3"),
323 327 "root": (has_root, "root permissions"),
324 328 "serve": (has_serve, "platform and python can manage 'hg serve -d'"),
325 329 "ssl": (has_ssl, "python >= 2.6 ssl module and python OpenSSL"),
@@ -163,6 +163,7 test http authentication
163 163 > getpass.getpass = newgetpass
164 164 > EOF
165 165
166 #if python243
166 167 $ hg id http://localhost:$HGPORT2/
167 168 abort: http authorization required for http://localhost:$HGPORT2/
168 169 [255]
@@ -176,6 +177,7 test http authentication
176 177 password: 5fed3813f7f5
177 178 $ hg id http://user:pass@localhost:$HGPORT2/
178 179 5fed3813f7f5
180 #endif
179 181 $ echo '[auth]' >> .hg/hgrc
180 182 $ echo 'l.schemes=http' >> .hg/hgrc
181 183 $ echo 'l.prefix=lo' >> .hg/hgrc
@@ -187,6 +189,7 test http authentication
187 189 5fed3813f7f5
188 190 $ hg id http://user@localhost:$HGPORT2/
189 191 5fed3813f7f5
192 #if python243
190 193 $ hg clone http://user:pass@localhost:$HGPORT2/ dest 2>&1
191 194 streaming all changes
192 195 7 files to transfer, 916 bytes of data
@@ -200,6 +203,7 test http authentication
200 203 $ hg id http://user:pass2@localhost:$HGPORT2/
201 204 abort: HTTP Error 403: no
202 205 [255]
206 #endif
203 207
204 208 $ cd ..
205 209
General Comments 0
You need to be logged in to leave comments. Login now