Index: django/test/client.py
===================================================================
--- django/test/client.py	(revision 8649)
+++ django/test/client.py	(working copy)
@@ -191,7 +191,7 @@
             'REQUEST_METHOD':    'GET',
             'SCRIPT_NAME':       '',
             'SERVER_NAME':       'testserver',
-            'SERVER_PORT':       80,
+            'SERVER_PORT':       '80',
             'SERVER_PROTOCOL':   'HTTP/1.1',
         }
         environ.update(self.defaults)
