diff options
author | Vajrasky Kok <sky.kok@speaklikeaking.com> | 2018-12-17 14:16:24 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-12-17 14:16:24 (GMT) |
commit | fae95874b729dfe62a7a40625f8717aed20b0fca (patch) | |
tree | 3aeb069d04fa0620d373233c65a9483818326607 /Lib | |
parent | e991270363435da12049ecfe70bb69bd9c14b535 (diff) | |
download | cpython-fae95874b729dfe62a7a40625f8717aed20b0fca.zip cpython-fae95874b729dfe62a7a40625f8717aed20b0fca.tar.gz cpython-fae95874b729dfe62a7a40625f8717aed20b0fca.tar.bz2 |
bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_xmlrpc.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index 5f780d8..32263f7 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -818,11 +818,10 @@ class SimpleServerTestCase(BaseServerTestCase): # 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() |