Commit a8a40981 authored by Tres Seaver's avatar Tres Seaver

Fix tests which break under Python 3.3 due to '__qualname__'.

parent fadaad25
......@@ -91,13 +91,13 @@ class PyProxyBaseTestCase(unittest.TestCase):
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
......
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