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

Make tests compatible with Python 2.7.

parent 81bf6e15
...@@ -5,6 +5,7 @@ CHANGES ...@@ -5,6 +5,7 @@ CHANGES
3.6.1 (unreleased) 3.6.1 (unreleased)
------------------ ------------------
- Make tests compatible with Python 2.7.
3.6.0 (2010-04-30) 3.6.0 (2010-04-30)
------------------ ------------------
......
...@@ -704,10 +704,13 @@ def test_setProxiedObject(): ...@@ -704,10 +704,13 @@ def test_setProxiedObject():
The first argument to `setProxiedObject()` must be a proxy; other objects The first argument to `setProxiedObject()` must be a proxy; other objects
cause it to raise an exception: cause it to raise an exception:
>>> setProxiedObject(c1, None) >>> try:
Traceback (most recent call last): ... setProxiedObject(c1, None)
TypeError: setProxiedObject() argument 1 must be zope.proxy.ProxyBase, not C ... except TypeError:
... print "TypeError raised"
... else:
... print "Excpected TypeError not raised"
TypeError raised
""" """
def test_suite(): 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