tickets: 8636
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8636 | 2008-08-28 11:29:35 | 2008-08-28 11:52:52 | 2022-03-06 03:42:46.596182 | Unreviewed | closed | Uncategorized | dev | fixed | Test runner sets SERVER_PORT to int | 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) | nobody | adamlofts | 0 | 0 | 0 | 0 | 0 | 0 |