Skip to content

Commit

Permalink
- Collector #2295: Comments in PythonScripts could lead to syntax
Browse files Browse the repository at this point in the history
        errors
  • Loading branch information
zopyx committed Jun 23, 2007
1 parent 9b27df2 commit 4a50085
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/testPythonScript.py
Expand Up @@ -128,6 +128,9 @@ def testArithmetic(self):
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 testReduce(self):
res = self._newPS('return reduce(lambda x, y: x + y, [1,3,5,7])')()
self.assertEqual(res, 16)
Expand Down

0 comments on commit 4a50085

Please sign in to comment.