[Checkins] SVN: Products.GenericSetup/trunk/ added test and changelog

Thomas Desvenain thomas.desvenain at gmail.com
Wed Mar 23 12:57:20 EDT 2011


Log message for revision 121100:
  added test and changelog

Changed:
  U   Products.GenericSetup/trunk/Products/GenericSetup/tests/test_utils.py
  U   Products.GenericSetup/trunk/docs/CHANGES.rst

-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/tests/test_utils.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/tests/test_utils.py	2011-03-23 16:32:47 UTC (rev 121099)
+++ Products.GenericSetup/trunk/Products/GenericSetup/tests/test_utils.py	2011-03-23 16:57:19 UTC (rev 121100)
@@ -683,11 +683,12 @@
         from Products.GenericSetup.utils import PrettyDocument
         original = 'baz &nbsp;<bar>&"\''
         expected = ('<?xml version="1.0"?>\n'
-                    '<doc foo="baz &amp;nbsp;&lt;bar&gt;&amp;&quot;\'"/>\n')
+                    '<doc bar="" foo="baz &amp;nbsp;&lt;bar&gt;&amp;&quot;\'"/>\n')
 
         doc = PrettyDocument()
         node = doc.createElement('doc')
         node.setAttribute('foo', original)
+        node.setAttribute('bar', None)
         doc.appendChild(node)
         self.assertEqual(doc.toprettyxml(' '), expected)
         # Reparse

Modified: Products.GenericSetup/trunk/docs/CHANGES.rst
===================================================================
--- Products.GenericSetup/trunk/docs/CHANGES.rst	2011-03-23 16:32:47 UTC (rev 121099)
+++ Products.GenericSetup/trunk/docs/CHANGES.rst	2011-03-23 16:57:19 UTC (rev 121100)
@@ -4,6 +4,8 @@
 1.6.3 (unreleased)
 ------------------
 
+- Fixed crash at export when a node had None value.
+
 - Refactored global registries to use global named utilities.
 
 - Fixed the profile_id UnboundLocalError in the upgradeDepends directive when



More information about the checkins mailing list