Issue 8590: test_httpservers.CGIHTTPServerTestCase failure on 3.1-maint Mac OS X (original) (raw)
A failure in test_httpservers.py on 31-maint (not failing in py3k) on Mac OS X 10.6.3:
test_post (main.CGIHTTPServerTestCase) ... Traceback (most recent call last): File "/private/var/folders/WD/WDk8J3uFE7OM9tRer5Oy4E+++TI/-Tmp-/tmpv_ZniR/cgi-bin/.py", line 2, in import cgi File "/compile/py-31-maint/Lib/cgi.py", line 34, in from operator import attrgetter ImportError: No module named operator [28226 refs] FAIL
====================================================================== FAIL: test_post (main.CGIHTTPServerTestCase)
Traceback (most recent call last): File "Lib/test/test_httpservers.py", line 379, in test_post AssertionError: b'' != b'1, python, 123456\n'
Interesting to see the import error during the test. Running python and executing "import operator" works fine.
Yep:
test_post (main.CGIHTTPServerTestCase) ... Traceback (most recent call last): File "/private/var/folders/WD/WDk8J3uFE7OM9tRer5Oy4E+++TI/-Tmp-/tmp3KtUFW/cgi-bin/.py", line 2, in import cgi File "/compile/release31-maint/Lib/cgi.py", line 34, in from operator import attrgetter ImportError: No module named operator [28262 refs] FAIL test_url_collapse_path_split (main.CGIHTTPServerTestCase) ... ok
====================================================================== FAIL: test_post (main.CGIHTTPServerTestCase)
Traceback (most recent call last): File "Lib/test/test_httpservers.py", line 379, in test_post AssertionError: b'' != b'1, python, 123456\n'
Ran 23 tests in 1.315s
FAILED (failures=1) Traceback (most recent call last): File "Lib/test/test_httpservers.py", line 411, in test_main() File "Lib/test/test_httpservers.py", line 405, in test_main CGIHTTPServerTestCase File "/compile/release31-maint/Lib/test/support.py", line 903, in run_unittest _run_suite(suite) File "/compile/release31-maint/Lib/test/support.py", line 886, in _run_suite raise TestFailed(err) test.support.TestFailed: Traceback (most recent call last): File "Lib/test/test_httpservers.py", line 379, in test_post AssertionError: b'' != b'1, python, 123456\n'