]> granicus.if.org Git - python/commitdiff
bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)
authorVajrasky Kok <sky.kok@speaklikeaking.com>
Mon, 17 Dec 2018 14:16:24 +0000 (21:16 +0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 17 Dec 2018 14:16:24 +0000 (16:16 +0200)
Lib/test/test_xmlrpc.py

index 5f780d88002e9ee912cdaeb9299ab630008b9cc7..32263f7f0b3b06ee8b096543762a974ce4702d5b 100644 (file)
@@ -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()