[Zope3-checkins] CVS: Zope3/src/zope/app/event/tests - placelesssetup.py:1.10.8.1

Marius Gedminas mgedmin@codeworks.lt
Fri, 16 May 2003 04:33:44 -0400


Update of /cvs-repository/Zope3/src/zope/app/event/tests
In directory cvs.zope.org:/tmp/cvs-serv32597/src/zope/app/event/tests

Modified Files:
      Tag: stevea-decorators-branch
	placelesssetup.py 
Log Message:
Added clearEvents() module-level function to placelesssetup because sometimes
it is useful to clear recorded events in the middle of a unit test.


=== Zope3/src/zope/app/event/tests/placelesssetup.py 1.10 => 1.10.8.1 ===
--- Zope3/src/zope/app/event/tests/placelesssetup.py:1.10	Thu May  1 15:35:16 2003
+++ Zope3/src/zope/app/event/tests/placelesssetup.py	Fri May 16 04:33:43 2003
@@ -42,6 +42,9 @@
 
     return r
 
+def clearEvents():
+    del events[:]
+
 class PlacelessSetup:
 
     def setUp(self):