Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0aa93cda
Commit
0aa93cda
authored
Dec 08, 2007
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed two of the three failing xml rpc tests
parent
9bbac506
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Lib/SimpleXMLRPCServer.py
Lib/SimpleXMLRPCServer.py
+1
-1
Lib/test/test_xmlrpc.py
Lib/test/test_xmlrpc.py
+1
-1
No files found.
Lib/SimpleXMLRPCServer.py
View file @
0aa93cda
...
...
@@ -479,7 +479,7 @@ class SimpleXMLRPCRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def
report_404
(
self
):
# Report a 404 error
self
.
send_response
(
404
)
response
=
'No such page'
response
=
b
'No such page'
self
.
send_header
(
"Content-type"
,
"text/plain"
)
self
.
send_header
(
"Content-length"
,
str
(
len
(
response
)))
self
.
end_headers
()
...
...
Lib/test/test_xmlrpc.py
View file @
0aa93cda
...
...
@@ -424,7 +424,7 @@ class SimpleServerTestCase(unittest.TestCase):
self
.
assertEqual
(
result
.
results
[
0
][
'faultCode'
],
1
)
self
.
assertEqual
(
result
.
results
[
0
][
'faultString'
],
'<type
\
'
exceptions.
Exception
\
'
>:method "this_is_not_exists" '
'<type
\
'
Exception
\
'
>:method "this_is_not_exists" '
'is not supported'
)
except
xmlrpclib
.
ProtocolError
as
e
:
# ignore failures due to non-blocking socket 'unavailable' errors
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment