[Checkins] SVN: Zope/trunk/lib/python/Products/PythonScripts/tests/testPythonScript.py - Collector #2295: Comments in PythonScripts could lead to syntax

Andreas Jung andreas at andreas-jung.com
Sat Jun 23 03:35:24 EDT 2007


Log message for revision 76957:
        - Collector #2295: Comments in PythonScripts could lead to syntax
          errors
  

Changed:
  U   Zope/trunk/lib/python/Products/PythonScripts/tests/testPythonScript.py

-=-
Modified: Zope/trunk/lib/python/Products/PythonScripts/tests/testPythonScript.py
===================================================================
--- Zope/trunk/lib/python/Products/PythonScripts/tests/testPythonScript.py	2007-06-23 07:32:25 UTC (rev 76956)
+++ Zope/trunk/lib/python/Products/PythonScripts/tests/testPythonScript.py	2007-06-23 07:35:23 UTC (rev 76957)
@@ -128,6 +128,12 @@
         res = self._newPS('return 1 * 5 + 4 / 2 - 6')()
         self.assertEqual(res, 1)
 
+    def testCollector2295(self):
+        res = self._newPS('if False:\n  pass\n#hi')
+
+    def testCollector2295(self):
+        res = self._newPS('if False:\n  pass\n#hi')
+
     def testReduce(self):
         res = self._newPS('return reduce(lambda x, y: x + y, [1,3,5,7])')()
         self.assertEqual(res, 16)



More information about the Checkins mailing list