hgweb: account for Python 2.4 in one test
authorBryan O'Sullivan <bos@serpentine.com>
Wed, 28 Nov 2007 11:54:39 -0600
changeset 5564 b4af2dd9868a
parent 5563 d61fea133f2d
child 5565 feac5b0bf9ba
hgweb: account for Python 2.4 in one test
tests/test-hgweb
tests/test-hgweb.out
--- a/tests/test-hgweb	Wed Nov 28 09:39:17 2007 -0800
+++ b/tests/test-hgweb	Wed Nov 28 11:54:39 2007 -0600
@@ -22,7 +22,7 @@
 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/spam/foo?style=raw'
 
 echo % should give a 400 - bad command
-"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?cmd=spam&style=raw'
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?cmd=spam&style=raw' | sed 's/400.*/400/'
 
 echo % should give a 404 - file does not exist
 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw'
--- a/tests/test-hgweb.out	Wed Nov 28 09:39:17 2007 -0800
+++ b/tests/test-hgweb.out	Wed Nov 28 11:54:39 2007 -0600
@@ -56,7 +56,7 @@
 
 error: revision not found: spam
 % should give a 400 - bad command
-400 Bad Request
+400
 
 
 error: No such method: spam