Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fae9587

Browse files
vajraskyserhiy-storchaka
authored andcommitted
bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)
1 parent e991270 commit fae9587

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/test/test_xmlrpc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,11 +818,10 @@ def test_nonascii_methodname(self):
818818
# protocol error; provide additional information in test output
819819
self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
820820

821-
# [ch] The test 404 is causing lots of false alarms.
822-
def XXXtest_404(self):
821+
def test_404(self):
823822
# send POST with http.client, it should return 404 header and
824823
# 'Not Found' message.
825-
conn = httplib.client.HTTPConnection(ADDR, PORT)
824+
conn = http.client.HTTPConnection(ADDR, PORT)
826825
conn.request('POST', '/this-is-not-valid')
827826
response = conn.getresponse()
828827
conn.close()

0 commit comments

Comments
 (0)