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
test_httpservers on Debian Testing #49685
Comments
Hi, im trying to compile Python 3.0.1 under Debian Testing, and i get an |
I tried on coLinux(debian) and I got similar errors. But I'm not unix debian:~/python-dev/py3k# ./python Lib/test/test_httpservers.py ====================================================================== Traceback (most recent call last):
File "Lib/test/test_httpservers.py", line 342, in test_authorization
(res.read(), res.getheader('Content-type'), res.status))
File "/root/python-dev/py3k/Lib/http/client.py", line 592, in getheader
return ', '.join(self.msg.get_all(name, default))
TypeError ====================================================================== Traceback (most recent call last):
File "Lib/test/test_httpservers.py", line 322, in test_headers_and_content
(res.read(), res.getheader('Content-type'), res.status))
File "/root/python-dev/py3k/Lib/http/client.py", line 592, in getheader
return ', '.join(self.msg.get_all(name, default))
TypeError ====================================================================== Traceback (most recent call last):
File "Lib/test/test_httpservers.py", line 244, in test_get
self.check_status_and_reason(response, 404)
File "Lib/test/test_httpservers.py", line 220, in check_status_and_reason
self.assertEquals(response.status, status)
AssertionError: 200 != 404 ====================================================================== Traceback (most recent call last):
File "Lib/test/test_httpservers.py", line 330, in test_post
self.assertEquals(res.read(), b'1, python, 123456\n')
AssertionError: b'' != b'1, python, 123456\n' |
I tried too yesterday with the svn version, and i get the same error. |
Probably this is short code to reproduce "permission denied". import os, pwd
nobody = pwd.getpwnam('nobody')[2]
os.setuid(nobody)
open("dummy.txt", "w").write("foo") # permission denied Still I cannot understand what's going on. Is debian more secure than |
I dont know, it weird, because im running the test as root. I tried in a |
I re-download again (maybe its the four time jaja) the python 3.0.1 from |
I downloaded py3k branch and ran the tests with a regular user. All test SVN Revision: 70469 |
Hmm, I'm using coLinux with root user. (default) |
I think it isn't a problem / bug, rather than it's a protection method In the middle, it change a userid to 'nobody', then if you are logged in |
CGI tests shouldn't be run as root, it seems, as it breaks the inherent |
yes it ran with normal user :-) thanks now im enjoying python 3k ;-) 2009/3/23 Facundo Batista <report@bugs.python.org>
|
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: