[Checkins] SVN: zope.proxy/trunk/ Fix tests which break under Python 3.3 due to '__qualname__'.
Tres Seaver
cvs-admin at zope.org
Wed Nov 21 19:21:50 UTC 2012
Log message for revision 128403:
Fix tests which break under Python 3.3 due to '__qualname__'.
Changed:
_U zope.proxy/trunk/
U zope.proxy/trunk/src/zope/proxy/tests/test_proxy.py
-=-
Modified: zope.proxy/trunk/src/zope/proxy/tests/test_proxy.py
===================================================================
--- zope.proxy/trunk/src/zope/proxy/tests/test_proxy.py 2012-11-21 19:21:47 UTC (rev 128402)
+++ zope.proxy/trunk/src/zope/proxy/tests/test_proxy.py 2012-11-21 19:21:49 UTC (rev 128403)
@@ -91,13 +91,13 @@
def _foo():
return 'FOO'
proxy = self._makeOne(_foo)
- self.assertTrue(repr(proxy).startswith('<function _foo'))
+ self.assertEqual(repr(proxy), repr(_foo))
def test___str__(self):
def _foo():
return 'FOO'
proxy = self._makeOne(_foo)
- self.assertTrue(str(proxy).startswith('<function _foo'))
+ self.assertEqual(str(proxy), str(_foo))
def test___unicode__(self):
from zope.proxy._compat import PY3
More information about the checkins
mailing list