[Python-checkins] bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)
Miss Islington (bot)
webhook-mailer at python.org
Wed Dec 19 04:46:28 EST 2018
https://github.com/python/cpython/commit/9e1c7ed9aaa4dea413f1b3ed92bb79cccb2f50eb
commit: 9e1c7ed9aaa4dea413f1b3ed92bb79cccb2f50eb
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018年12月19日T01:46:23-08:00
summary:
bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)
(cherry picked from commit fae95874b729dfe62a7a40625f8717aed20b0fca)
Co-authored-by: Vajrasky Kok <sky.kok at speaklikeaking.com>
files:
M Lib/test/test_xmlrpc.py
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py
index 5f780d88002e..32263f7f0b3b 100644
--- a/Lib/test/test_xmlrpc.py
+++ b/Lib/test/test_xmlrpc.py
@@ -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()
More information about the Python-checkins
mailing list