[Zope3-checkins] CVS: Zope3/src/zope/app/pythonpage - __init__.py:1.8

Tim Peters tim.one at comcast.net
Fri Apr 2 12:08:00 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/pythonpage
In directory cvs.zope.org:/tmp/cvs-serv23684/src/zope/app/pythonpage

Modified Files:
	__init__.py 
Log Message:
PythonPage test:  the bit trying to test that Windows line ends work was
actually testing a mix of Macintosh Classic and Unix line ends.


=== Zope3/src/zope/app/pythonpage/__init__.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/pythonpage/__init__.py:1.7	Fri Apr  2 10:33:57 2004
+++ Zope3/src/zope/app/pythonpage/__init__.py	Fri Apr  2 12:07:59 2004
@@ -71,7 +71,7 @@
       >>> request = None
 
       Test that can produce the correct filename
-      
+
       >>> pp._PythonPage__filename()
       u'/pp'
 
@@ -82,10 +82,9 @@
       >>> pp(request)
       u'<html>...</html>\n'
 
-      Make sure that Windows users input also works. Normally Python does not
-      like '\r' as line endings.
+      Make sure that Windows (\r\n) line ends also work.
 
-      >>> pp.setSource(u"if 1 == 1:\r\r\n\n   '''<html>...</html>'''")
+      >>> pp.setSource(u"if 1 == 1:\r\n\r\n   '''<html>...</html>'''")
       >>> pp(request)
       u'<html>...</html>\n'
 
@@ -95,7 +94,7 @@
       >>> pp(request)
       u'<html>...</html>\n'
 
-      ... and here a triple quote with some variable replacement. 
+      ... and here a triple quote with some variable replacement.
 
       >>> pp.setSource(u"'''<html>%s</html>''' %x")
       >>> pp(request, x='test')




More information about the Zope3-Checkins mailing list