Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upPyramid tests set invalid status on Response() objects #1864
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Fixed via #1865. |
mmerickel
closed this
Aug 31, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bertjwregeer commentedJul 30, 2015
Due to changes in WebOb 1.5.0 (specifically: https://github.com/Pylons/webob/blob/master/docs/news.txt#L14) when Pyramid uses
_HTTPMove()in tests, it doesn't set the appropriatecodeandtitlethis passingNone Noneas the Response()'s status.In WebOb 1.5.0 this has become more strict, so that rather than blowing up at time of use (for example when the
Responseobject is actually used tostart_response, it now blows up when the status is being set. This makes for a better API whereby you are not left guessing why WebOb blew up at a later time, and instead it is done at the call site.This breaks Pyramid's tests as seen on Travis CI: https://travis-ci.org/Pylons/pyramid/jobs/73282779