New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xmlrpc.server assumes sys.stdout will have a buffer attribute #51414
Comments
The xmlrpc tests were changed to use a StringIO object instead of a The tests then started failing, since xmlrpc.server assumes sys.stdout buffer Assuming this attribute exists is a bug in xmlrpc.server that should be |
Well this is in the CGI implementation, and it's reasonable to assume (however, _marshaled_dispatch() is quite strange in that it accepts str I propose to fix test_xmlrpc instead so that it uses a BytesIO wrapped |
I think Antoine's suggestion is reasonable, and that we should apply the |
I agree with Antoine that CGIXML... is right in accessing Consequentially, his patch also looks right to me; please apply. |
Patch applied in r75710. |
Fine by me (I was very close to changing the test when I first triggered Assigning back to myself to add a comment to the relevant line (i.e. |
The remaining question, however, is why it doesn't also rely on |
antoine's patch (fixing this issue) is commited. Can we close this issue? |
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: