diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-03 18:49:41 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-03 18:49:41 (GMT) |
commit | 5f81741106ebf500ce249c37b86642344c4215c9 (patch) | |
tree | 7a48e2a437d4c6ec3b34b7b354f07b6ae3c1e7af | |
parent | 38a66adccbef4a2b2e0ad57024a2398939f47ec2 (diff) | |
download | cpython-5f81741106ebf500ce249c37b86642344c4215c9.zip cpython-5f81741106ebf500ce249c37b86642344c4215c9.tar.gz cpython-5f81741106ebf500ce249c37b86642344c4215c9.tar.bz2 |
Actually make test_wsgiref independent from the Python version.
-rwxr-xr-x | Lib/test/test_wsgiref.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_wsgiref.py b/Lib/test/test_wsgiref.py index b893bcf..cea3565 100755 --- a/Lib/test/test_wsgiref.py +++ b/Lib/test/test_wsgiref.py @@ -182,9 +182,10 @@ class IntegrationTests(TestCase): 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" |