Skip to content

Commit

Permalink
Test for Collector #2334.
Browse files Browse the repository at this point in the history
  • Loading branch information
hathawsh committed Jul 2, 2001
1 parent 78f063c commit 49433e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testPythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ def testEmpty(self):
empty = self._newPS('')()
assert empty is None, empty

def testIndented(self):
# This failed to compile in Zope 2.4.0b2.
res = self._newPS('if 1:\n return 2')()
assert res == 2, res

def testReturn(self):
return1 = self._newPS('return 1')()
assert return1 == 1, return1
Expand Down

0 comments on commit 49433e8

Please sign in to comment.