[Checkins] SVN: zope.i18nmessageid/branches/regebro-python3/s There is something fishy going on here, I suspect version conflicts

Lennart Regebro regebro at gmail.com
Fri Nov 19 11:17:23 EST 2010


Log message for revision 118498:
  There is something fishy going on here, I suspect version conflicts

Changed:
  U   zope.i18nmessageid/branches/regebro-python3/setup.py
  U   zope.i18nmessageid/branches/regebro-python3/src/zope/i18nmessageid/messages.txt
  U   zope.i18nmessageid/branches/regebro-python3/src/zope/i18nmessageid/tests.py

-=-
Modified: zope.i18nmessageid/branches/regebro-python3/setup.py
===================================================================
--- zope.i18nmessageid/branches/regebro-python3/setup.py	2010-11-19 14:51:42 UTC (rev 118497)
+++ zope.i18nmessageid/branches/regebro-python3/setup.py	2010-11-19 16:17:23 UTC (rev 118498)
@@ -33,7 +33,6 @@
                  convert_2to3_doctests = [
                      'src/zope/i18nmessageid/messages.txt',
                      ],
-                 dependency_links = ['.'],
                  )
 else:
     extra = {}

Modified: zope.i18nmessageid/branches/regebro-python3/src/zope/i18nmessageid/messages.txt
===================================================================
--- zope.i18nmessageid/branches/regebro-python3/src/zope/i18nmessageid/messages.txt	2010-11-19 14:51:42 UTC (rev 118497)
+++ zope.i18nmessageid/branches/regebro-python3/src/zope/i18nmessageid/messages.txt	2010-11-19 16:17:23 UTC (rev 118498)
@@ -65,17 +65,21 @@
 The message's attributes are considered part of the immutable message
 object.  They cannot be changed once the message id is created:
 
-  >>> def _assertReadonlyAttribute(thing, attrname, value):
-  ...     try:
-  ...         setattr(thing, attrname, value)
-  ...     except Exception, e:
-  ...         assert str(e) == 'readonly attribute'
-  ...     else:
-  ...         raise AssertionError("Assigned to read-only attribute")
-  >>> _assertReadonlyAttribute(robot, 'domain', "planetexpress")
-  >>> _assertReadonlyAttribute(robot, 'default', u"${name} is not a robot.")
-  >>> _assertReadonlyAttribute(robot, 'mapping',  {u'name': u'Bender'})
+  >>> robot.domain = "planetexpress"
+  Traceback (most recent call last):
+  ...
+  TypeError: readonly attribute
 
+  >>> robot.default = u"${name} is not a robot."
+  Traceback (most recent call last):
+  ...
+  TypeError: readonly attribute
+
+  >>> robot.mapping = {u'name': u'Bender'}
+  Traceback (most recent call last):
+  ...
+  TypeError: readonly attribute
+
 If you need to change their information, you'll have to make a new
 message id object:
 

Modified: zope.i18nmessageid/branches/regebro-python3/src/zope/i18nmessageid/tests.py
===================================================================
--- zope.i18nmessageid/branches/regebro-python3/src/zope/i18nmessageid/tests.py	2010-11-19 14:51:42 UTC (rev 118497)
+++ zope.i18nmessageid/branches/regebro-python3/src/zope/i18nmessageid/tests.py	2010-11-19 16:17:23 UTC (rev 118498)
@@ -122,8 +122,6 @@
             unittest.makeSuite(PickleEqualityTests),
 	    ))
 except ImportError, e: # pragma: no cover
-    # couldnt import C version
-    import sys
     print '=' * 80
     print "Could not import C version:"
     print e



More information about the checkins mailing list