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 010c34a commit ed2cf2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testPythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ 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 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 ed2cf2c

Please sign in to comment.