Opened 16 years ago
Closed 16 years ago
#8636 closed (fixed)
Test runner sets SERVER_PORT to int
Reported by: | adamlofts | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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)
Attachments (1)
Change History (2)
by , 16 years ago
Attachment: | client.py.patch added |
---|
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Attached as patch to help formatting