changeset 5564:b4af2dd9868a

hgweb: account for Python 2.4 in one test
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 28 Nov 2007 11:54:39 -0600
parents d61fea133f2d
children feac5b0bf9ba
files tests/test-hgweb tests/test-hgweb.out
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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