This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author karlcow
Recipients karlcow, larry, orsenthil
Date 2013-03-06.16:07:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362586076.1.0.295302189204.issue17324@psf.upfronthosting.co.za>
In-reply-to
Content
orsenthil, 

would that test work?
See issue-17324-test-1.patch

Here the result of the test which is FAIL as planned (given the current issue).

→ ./python.exe Lib/test/test_httpservers.py 

test_header_buffering_of_send_error (__main__.BaseHTTPRequestHandlerTestCase) ... ok
[…]

test_get (__main__.SimpleHTTPServerTestCase) ... FAIL

[…]

test_start_with_double_slash (__main__.SimpleHTTPRequestHandlerTestCase) ... ok

======================================================================
FAIL: test_get (__main__.SimpleHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_httpservers.py", line 254, in test_get
    self.check_status_and_reason(response, 404, data=self.data)
  File "Lib/test/test_httpservers.py", line 243, in check_status_and_reason
    self.assertEqual(response.status, status)
AssertionError: 200 != 404

----------------------------------------------------------------------
Ran 39 tests in 4.382s

FAILED (failures=1)
Traceback (most recent call last):
  File "Lib/test/test_httpservers.py", line 686, in <module>
    test_main()
  File "Lib/test/test_httpservers.py", line 680, in test_main
    SimpleHTTPRequestHandlerTestCase,
  File "/Users/karl/Documents/2011/cpython/Lib/test/support.py", line 1589, in run_unittest
    _run_suite(suite)
  File "/Users/karl/Documents/2011/cpython/Lib/test/support.py", line 1564, in _run_suite
    raise TestFailed(err)
test.support.TestFailed: Traceback (most recent call last):
  File "Lib/test/test_httpservers.py", line 254, in test_get
    self.check_status_and_reason(response, 404, data=self.data)
  File "Lib/test/test_httpservers.py", line 243, in check_status_and_reason
    self.assertEqual(response.status, status)
AssertionError: 200 != 404

[141593 refs]
History
Date User Action Args
2013-03-06 16:07:56karlcowsetrecipients: + karlcow, orsenthil, larry
2013-03-06 16:07:56karlcowsetmessageid: <1362586076.1.0.295302189204.issue17324@psf.upfronthosting.co.za>
2013-03-06 16:07:56karlcowlinkissue17324 messages
2013-03-06 16:07:55karlcowcreate