]> granicus.if.org Git - python/commitdiff
Actually make test_wsgiref independent from the Python version.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 3 Jan 2009 18:49:41 +0000 (18:49 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 3 Jan 2009 18:49:41 +0000 (18:49 +0000)
Lib/test/test_wsgiref.py

index b893bcf05c97a17ae7f3558874ed5b504520b4c0..cea3565343a033e70599d6d1b0196af98c211593 100755 (executable)
@@ -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"