[Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests - testSecurity.py:1.11.14.3

Tres Seaver tseaver at zope.com
Fri Jan 16 13:12:14 EST 2004


Update of /cvs-repository/Zope/lib/python/AccessControl/tests
In directory cvs.zope.org:/tmp/cvs-serv13665/lib/python/AccessControl/tests

Modified Files:
      Tag: Zope-2_7-branch
	testSecurity.py 
Log Message:


                                                                                  - Collector #1186:  some globals required to support certain in restricted
    code (e.g., list comprehensions in DTML expressions)
    were not propagated to all the right places.



=== Zope/lib/python/AccessControl/tests/testSecurity.py 1.11.14.2 => 1.11.14.3 ===
--- Zope/lib/python/AccessControl/tests/testSecurity.py:1.11.14.2	Mon Jan 12 23:11:27 2004
+++ Zope/lib/python/AccessControl/tests/testSecurity.py	Fri Jan 16 13:12:11 2004
@@ -84,9 +84,10 @@
         <dtml-var expr="_.min([1,2])">
         <dtml-var expr="_.max([2,3])">
         <dtml-var expr="_.sum([1,2,3,4])">
+        <dtml-var expr="[x for x in (1, 2, 3)]">
         """
 
-        EXPECTED = ['1', '3', '10']
+        EXPECTED = ['1', '3', '10', '[1, 2, 3]']
 
         #
         #   XXX:    these expressions seem like they should work, with




More information about the Zope-Checkins mailing list