[Python-checkins] r68206 - python/branches/py3k/Lib/test/test_wsgiref.py
antoine.pitrou
python-checkins at python.org
Sat Jan 3 19:49:42 CET 2009
Author: antoine.pitrou
Date: Sat Jan 3 19:49:41 2009
New Revision: 68206
Log:
Actually make test_wsgiref independent from the Python version.
Modified:
python/branches/py3k/Lib/test/test_wsgiref.py
Modified: python/branches/py3k/Lib/test/test_wsgiref.py
==============================================================================
--- python/branches/py3k/Lib/test/test_wsgiref.py (original)
+++ python/branches/py3k/Lib/test/test_wsgiref.py Sat Jan 3 19:49:41 2009
@@ -182,9 +182,10 @@
return [b"data"]
out, err = run_amock(validator(app))
self.failUnless(err.endswith('"GET / HTTP/1.0" 200 4\n'))
+ ver = sys.version.split()[0].encode('ascii')
self.assertEqual(
b"HTTP/1.0 200 OK\r\n"
- b"Server: WSGIServer/0.1 Python/3.1a0\r\n"
+ b"Server: WSGIServer/0.1 Python/" + ver + b"\r\n"
b"Content-Type: text/plain; charset=utf-8\r\n"
b"Date: Wed, 24 Dec 2008 13:29:32 GMT\r\n"
b"\r\n"
More information about the Python-checkins
mailing list