#8636: Test runner sets SERVER_PORT to int
---------------------------+------------------------------------------------
Reporter: adamlofts | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
The main django wsgi handler sets e.g. SERVER_PORT = '80' but the test
runner always sers SERVER_PORT = 80.
Suggested patch:
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)
--
Ticket URL: <http://code.djangoproject.com/ticket/8636>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---