[Zope-Checkins] CVS: Packages/RestrictedPython/tests -
testRestrictions.py:1.14.68.3
Tres Seaver
tseaver at zope.com
Fri Nov 26 13:03:22 EST 2004
Update of /cvs-repository/Packages/RestrictedPython/tests
In directory cvs.zope.org:/tmp/cvs-serv21128/lib/python/RestrictedPython/tests
Modified Files:
Tag: Zope-2_7-branch
testRestrictions.py
Log Message:
- Apply fix for collector #945.
=== Packages/RestrictedPython/tests/testRestrictions.py 1.14.68.2 => 1.14.68.3 ===
--- Packages/RestrictedPython/tests/testRestrictions.py:1.14.68.2 Thu Jan 8 18:33:57 2004
+++ Packages/RestrictedPython/tests/testRestrictions.py Fri Nov 26 13:03:21 2004
@@ -13,7 +13,7 @@
from RestrictedPython import compile_restricted, PrintCollector
from RestrictedPython.Eval import RestrictionCapableEval
from RestrictedPython.tests import before_and_after, restricted_module, verify
-from RestrictedPython.RCompile import RModule
+from RestrictedPython.RCompile import RModule, RFunction
try:
__file__
@@ -437,6 +437,12 @@
def checkLambda(self):
co = self._compile_file("lambda.py")
exec co in {}, {}
+
+ def checkEmpty(self):
+ rf = RFunction("", "", "issue945", "empty.py", {})
+ rf.parse()
+ rf2 = RFunction("", "# still empty\n\n# by", "issue945", "empty.py", {})
+ rf2.parse()
def checkSyntaxError(self):
err = ("def f(x, y):\n"
More information about the Zope-Checkins
mailing list