Repository navigation
Commit fd205c3
committed
wreq: serve httpbin with gunicorn in the test command
test_send_async_bytes_stream, test_send_sync_bytes_stream and
test_multiple_requests still failed on both legs after the test files
were staged: the httpbin log shows each of their POSTs answered with a
501. Those tests send a streamed body, so the request goes out with
Transfer-Encoding: chunked, and httpbin's before_request hook aborts any
chunked request with 501 "Chunked requests are not supported" unless
SERVER_SOFTWARE starts with gunicorn/. `python -m httpbin.core` runs it
on the Werkzeug dev server, so it always takes that branch.
Upstream's tests job runs httpbin from the kennethreitz/httpbin
container, which serves it with gunicorn, so do the same here: install
gunicorn (pure Python) next to httpbin and start httpbin:app with it on
127.0.0.1:8080. The gthread worker keeps keep-alive connections and
concurrent requests working.
Also correct the CIBW_TEST_SOURCES comment, which blamed the
DecodingError on the missing files rather than on the 501.1 parent f365442 commit fd205c3
1 file changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
107 | 105 | | |
108 | 106 | | |
109 | | - | |
| 107 | + | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
0 commit comments