[Zope3-checkins] CVS: Zope3/src/zope/app/interpreter/tests - test_pythoninterpreter.py:1.3

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Feb 25 17:58:30 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/interpreter/tests
In directory cvs.zope.org:/tmp/cvs-serv28417/src/zope/app/interpreter/tests

Modified Files:
	test_pythoninterpreter.py 
Log Message:
Inline code would not run under Windows. goopot, who tested Zope using
cygwin today, reported the problem and verified this fix. 


=== Zope3/src/zope/app/interpreter/tests/test_pythoninterpreter.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interpreter/tests/test_pythoninterpreter.py:1.2	Thu Aug 21 10:19:25 2003
+++ Zope3/src/zope/app/interpreter/tests/test_pythoninterpreter.py	Wed Feb 25 17:58:30 2004
@@ -79,6 +79,11 @@
         self.assertRaises(ForbiddenAttribute,
                           PythonInterpreter.evaluateRawCode, code, {})
 
+    def test_windows_newline(self):
+        code = ('print "hello"\r\n'
+                'print "world"\r\n')
+        self._check(code, 'hello\nworld\n', True)
+        
 
 def test_suite():
     return unittest.TestSuite((




More information about the Zope3-Checkins mailing list