Commit 36303837 authored by Tres Seaver's avatar Tres Seaver

LP #142563: Fix AccessControl.User.NullUnrestrictedUserTests.__str__.

parent a38c7926
......@@ -44,6 +44,8 @@ Features Added
Bugs Fixed
++++++++++
- LP #142563: Fix ``AccessControl.User.NullUnrestrictedUserTests.__str__``.
- Fix several template errors in SiteErrorLog (chameleon compatibility).
- LP #267820: Fix bad except clause in the ``sequence_sort`` method of
......
......@@ -400,6 +400,9 @@ class NullUnrestrictedUser(SpecialUser):
def has_permission(self, permission, object):
return 0
def __str__(self):
# See https://bugs.launchpad.net/zope2/+bug/142563
return repr(self)
def readUserAccessFile(filename):
......
......@@ -205,6 +205,11 @@ class NullUnrestrictedUserTests(unittest.TestCase):
null = self._makeOne()
self.assertEqual(repr(null), "<NullUnrestrictedUser (None, None)>")
def test___str__(self):
# See https://bugs.launchpad.net/zope2/+bug/142563
null = self._makeOne()
self.assertEqual(str(null), "<NullUnrestrictedUser (None, None)>")
class UserTests(unittest.TestCase):
......
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