summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpje <pje@571e12c6-e1fa-0310-aee7-ff1267fa46bd>2004-12-01 16:14:59 +0000
committerpje <pje@571e12c6-e1fa-0310-aee7-ff1267fa46bd>2004-12-01 16:14:59 +0000
commite2adc7954ed15c0e0b25b28e326cddda8d0bd725 (patch)
tree2ca2ebeaa50cdb7dc97942981af189a66497bbc4
parent0d056444b157db09f4aa114ad34c0eec15850159 (diff)
downloadwsgiref-e2adc7954ed15c0e0b25b28e326cddda8d0bd725.tar.gz
Fix too-picky regex that caused match failure in Python 2.3 and up, which
apparently changed the HTTP 'Date:' header format to allow a leading space on the day instead of a leading zero. Test should now work on 2.2-2.4. Bug reported by Alain Poirier, R. David Murray, and Ulrich Eck. git-svn-id: svn://svn.eby-sarna.com/svnroot/wsgiref@260 571e12c6-e1fa-0310-aee7-ff1267fa46bd
-rw-r--r--src/wsgiref/tests/test_handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wsgiref/tests/test_handlers.py b/src/wsgiref/tests/test_handlers.py
index d56c337..2eb1e4b 100644
--- a/src/wsgiref/tests/test_handlers.py
+++ b/src/wsgiref/tests/test_handlers.py
@@ -170,7 +170,7 @@ class HandlerTests(TestCase):
stdpat = (
r"HTTP/%s 200 OK\r\n"
- r"Date: \w{3} \w{3} \d{2} \d\d:\d\d:\d\d \d{4}\r\n"
+ r"Date: \w{3} \w{3} [ 0123]\d \d\d:\d\d:\d\d \d{4}\r\n"
r"%s" r"Content-Length: 0\r\n" r"\r\n"
)
shortpat = (