[Checkins] SVN: zope.proxy/trunk/ Make tests compatible with Python 2.7.
Hanno Schlichting
hannosch at hannosch.eu
Tue Jul 6 14:02:05 EDT 2010
Log message for revision 114258:
Make tests compatible with Python 2.7.
Changed:
U zope.proxy/trunk/CHANGES.txt
U zope.proxy/trunk/src/zope/proxy/tests/test_proxy.py
-=-
Modified: zope.proxy/trunk/CHANGES.txt
===================================================================
--- zope.proxy/trunk/CHANGES.txt 2010-07-06 17:52:24 UTC (rev 114257)
+++ zope.proxy/trunk/CHANGES.txt 2010-07-06 18:02:05 UTC (rev 114258)
@@ -5,6 +5,7 @@
3.6.1 (unreleased)
------------------
+- Make tests compatible with Python 2.7.
3.6.0 (2010-04-30)
------------------
Modified: zope.proxy/trunk/src/zope/proxy/tests/test_proxy.py
===================================================================
--- zope.proxy/trunk/src/zope/proxy/tests/test_proxy.py 2010-07-06 17:52:24 UTC (rev 114257)
+++ zope.proxy/trunk/src/zope/proxy/tests/test_proxy.py 2010-07-06 18:02:05 UTC (rev 114258)
@@ -704,10 +704,13 @@
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():
More information about the checkins
mailing list