Opened 12 years ago

Closed 12 years ago

#8636 closed (fixed)

Test runner sets SERVER_PORT to int

Reported by: adamlofts Owned by: nobody
Component: Uncategorized Version: master
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


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/
--- django/test/ (revision 8649)
+++ django/test/ (working copy)
@@ -191,7 +191,7 @@

'SERVER_NAME': 'testserver',

  • 'SERVER_PORT': 80,

+ 'SERVER_PORT': '80',



Attachments (1) (507 bytes) - added by adamlofts 12 years ago.
Attached as patch to help formatting

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by adamlofts

Attachment: added

Attached as patch to help formatting

comment:1 Changed 12 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [8655]) Fixed #8636: Corrected the test client to use the string '80' in the request META, rather than the integer 80. Thanks to Adam Lofts for the report and fix.

Note: See TracTickets for help on using tickets.
Back to Top