[Checkins] SVN: Zope/branches/gsoc-python-2.5/ The doc test has been slightly changed in ZPublisher to get the error message extracted correctly .

Ranjith Kannikara ranjithkannikara at gmail.com
Tue Jul 8 13:25:13 EDT 2008


Log message for revision 88119:
  The doc test has been slightly changed in ZPublisher to get the error message extracted correctly        .
  
  

Changed:
  U   Zope/branches/gsoc-python-2.5/doc/CHANGES.txt
  U   Zope/branches/gsoc-python-2.5/lib/python/ZPublisher/tests/testPublish.py

-=-
Modified: Zope/branches/gsoc-python-2.5/doc/CHANGES.txt
===================================================================
--- Zope/branches/gsoc-python-2.5/doc/CHANGES.txt	2008-07-08 14:54:52 UTC (rev 88118)
+++ Zope/branches/gsoc-python-2.5/doc/CHANGES.txt	2008-07-08 17:25:07 UTC (rev 88119)
@@ -419,6 +419,8 @@
       
       - The Wrapper_compare function from tp_compare to tp_richcompare.
 	Also another function Wrapper_richcompare is added.
+      
+      - The doc test has been slightly changed in ZPublisher to get the error message extracted correctly	 .
 
     Other Changes
 

Modified: Zope/branches/gsoc-python-2.5/lib/python/ZPublisher/tests/testPublish.py
===================================================================
--- Zope/branches/gsoc-python-2.5/lib/python/ZPublisher/tests/testPublish.py	2008-07-08 14:54:52 UTC (rev 88118)
+++ Zope/branches/gsoc-python-2.5/lib/python/ZPublisher/tests/testPublish.py	2008-07-08 17:25:07 UTC (rev 88119)
@@ -29,7 +29,8 @@
             exception = exceptions[0]
             exceptions.remove(exception)
             exceptionShortName = str(exception).split('.')[-1]
-            self.append('raising %s from %s' % (exceptionShortName, context))
+            exceptionShortName = exceptionShortName.split("'")[0]
+	    self.append('raising %s from %s' % (exceptionShortName, context))
             raise exception
 
 



More information about the Checkins mailing list