bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)

(cherry picked from commit fae95874b7)

Co-authored-by: Vajrasky Kok <sky.kok@speaklikeaking.com>
This commit is contained in:
Miss Islington (bot) 2018-12-19 01:46:23 -08:00 committed by GitHub
parent 1e47fbcf78
commit 9e1c7ed9aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -818,11 +818,10 @@ def test_nonascii_methodname(self):
# protocol error; provide additional information in test output
self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
# [ch] The test 404 is causing lots of false alarms.
def XXXtest_404(self):
def test_404(self):
# send POST with http.client, it should return 404 header and
# 'Not Found' message.
conn = httplib.client.HTTPConnection(ADDR, PORT)
conn = http.client.HTTPConnection(ADDR, PORT)
conn.request('POST', '/this-is-not-valid')
response = conn.getresponse()
conn.close()