From e2adc7954ed15c0e0b25b28e326cddda8d0bd725 Mon Sep 17 00:00:00 2001 From: pje Date: Wed, 1 Dec 2004 16:14:59 +0000 Subject: 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 --- src/wsgiref/tests/test_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ( -- cgit v1.2.1