You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpo-12921: http.server.BaseHTTPRequestHandler.send_error , ability send a detailed response
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2013-03-05.13:35:23.514>created_at=<Date2013-03-05.12:21:27.691>labels= ['tests', 'library']
title='http tests testing more than the error code are fragile'updated_at=<Date2013-03-05.13:35:23.505>user='https://github.com/karlcow'
Testing the message, IMHO, should be only, for testing the construction of the message. The tests here are made for testing the right error code, but they try to do more.
We are testing our http server. It is not obviously inappropriate to test the full string. Especially in the Line to Long case, where we are testing that our specific error message is produced. If you wish to argue that we should emit the standard message and only put the specific info in the body of the response, that would be a design change, and then we should probably test for *that*, since it would be a change from current behavior. Personally I find the more-specific information being in the response code message to be helpful, but I haven't done enough web programming lately for my opinion to count for much :)
So, I do not think this issue needs to be separate from bpo-12921. The tests should be fixed as part of the enhancement being advocated there (and I certainly agree it should be *possible* to control the two messages separately, regardless of what we choose to do by default).
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: