Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
36cb1b96
Commit
36cb1b96
authored
Apr 04, 2009
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress test failure due to changes in Python 2.6's xmlrpclib.
parent
c6a27b55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/ZPublisher/tests/test_xmlrpc.py
src/ZPublisher/tests/test_xmlrpc.py
+6
-1
No files found.
src/ZPublisher/tests/test_xmlrpc.py
View file @
36cb1b96
...
...
@@ -183,13 +183,18 @@ class XMLRPCResponseTests(unittest.TestCase):
def
test_functionattribute
(
self
):
# Cannot marshal functions or methods, obviously
import
sys
import
xmlrpclib
def
foo
():
pass
body
=
FauxInstance
(
public
=
foo
)
faux
=
FauxResponse
()
response
=
self
.
_makeOne
(
faux
)
response
.
setBody
(
body
)
self
.
assertRaises
(
xmlrpclib
.
Fault
,
xmlrpclib
.
loads
,
faux
.
_body
)
if
sys
.
version_info
<
(
2
,
6
):
self
.
assertRaises
(
xmlrpclib
.
Fault
,
xmlrpclib
.
loads
,
faux
.
_body
)
else
:
func
=
xmlrpclib
.
loads
(
faux
.
_body
)
self
.
assertEqual
(
func
,
(({
'public'
:
{}},),
None
))
def
test_emptystringattribute
(
self
):
# Test an edge case: attribute name '' is possible,
...
...
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