[PATCH 3 of 3 V2] test-http: drop compatibility check on Python >= 2.4.3

Gilles Moris gilles.moris at free.fr
Fri May 15 04:09:26 CDT 2015


# HG changeset patch
# User Gilles Moris <gilles.moris at free.fr>
# Date 1431678299 -7200
#      Fri May 15 10:24:59 2015 +0200
# Node ID 92ac8400e22b7909787f9e4546b89268e298280e
# Parent  506ec227e18df2feb51070a50d4f0cb200f0b227
test-http: drop compatibility check on Python >= 2.4.3

This is obsolete now that Python < 2.6 is no more supported.
This is thus a backout of c499fff76440.

diff -r 506ec227e18d -r 92ac8400e22b tests/hghave.py
--- a/tests/hghave.py	Fri May 15 09:46:21 2015 +0200
+++ b/tests/hghave.py	Fri May 15 10:24:59 2015 +0200
@@ -282,10 +282,6 @@
     except ImportError:
         return False
 
- at check("python243", "python >= 2.4.3")
-def has_python243():
-    return sys.version_info >= (2, 4, 3)
-
 @check("json", "some json module available")
 def has_json():
     try:
diff -r 506ec227e18d -r 92ac8400e22b tests/test-http.t
--- a/tests/test-http.t	Fri May 15 09:46:21 2015 +0200
+++ b/tests/test-http.t	Fri May 15 10:24:59 2015 +0200
@@ -166,7 +166,6 @@
   > getpass.getpass = newgetpass
   > EOF
 
-#if python243
   $ hg id http://localhost:$HGPORT2/
   abort: http authorization required for http://localhost:$HGPORT2/
   [255]
@@ -180,7 +179,6 @@
   password: 5fed3813f7f5
   $ hg id http://user:pass@localhost:$HGPORT2/
   5fed3813f7f5
-#endif
   $ echo '[auth]' >> .hg/hgrc
   $ echo 'l.schemes=http' >> .hg/hgrc
   $ echo 'l.prefix=lo' >> .hg/hgrc
@@ -192,7 +190,6 @@
   5fed3813f7f5
   $ hg id http://user@localhost:$HGPORT2/
   5fed3813f7f5
-#if python243
   $ hg clone http://user:pass@localhost:$HGPORT2/ dest 2>&1
   streaming all changes
   7 files to transfer, 916 bytes of data
@@ -291,7 +288,6 @@
   "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=686173686564+5eb5abfefeea63c80dd7553bcc3783f37e0c5524
   "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
 
-#endif
   $ cd ..
 
 clone of serve with repo in root and unserved subrepo (issue2970)


More information about the Mercurial-devel mailing list