Commit 78d5e2cb authored by Hanno Schlichting's avatar Hanno Schlichting

Make tests compatible with Python 2.7.

parent 81bf6e15
......@@ -5,6 +5,7 @@ CHANGES
3.6.1 (unreleased)
------------------
- Make tests compatible with Python 2.7.
3.6.0 (2010-04-30)
------------------
......
......@@ -704,10 +704,13 @@ def test_setProxiedObject():
The first argument to `setProxiedObject()` must be a proxy; other objects
cause it to raise an exception:
>>> setProxiedObject(c1, None)
Traceback (most recent call last):
TypeError: setProxiedObject() argument 1 must be zope.proxy.ProxyBase, not C
>>> try:
... setProxiedObject(c1, None)
... except TypeError:
... print "TypeError raised"
... else:
... print "Excpected TypeError not raised"
TypeError raised
"""
def test_suite():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment