[Zope3-checkins] CVS: Zope3/src/zope/i18n - globaltranslationservice.py:1.4
Jim Fulton
jim@zope.com
Tue, 25 Mar 2003 15:43:35 -0500
Update of /cvs-repository/Zope3/src/zope/i18n
In directory cvs.zope.org:/tmp/cvs-serv29001
Modified Files:
globaltranslationservice.py
Log Message:
Added testing cleanup code.
=== Zope3/src/zope/i18n/globaltranslationservice.py 1.3 => 1.4 ===
--- Zope3/src/zope/i18n/globaltranslationservice.py:1.3 Tue Mar 25 12:01:52 2003
+++ Zope3/src/zope/i18n/globaltranslationservice.py Tue Mar 25 15:43:35 2003
@@ -99,3 +99,9 @@
return self.interpolate(text, mapping)
translationService = GlobalTranslationService()
+
+
+# Register our cleanup with Testing.CleanUp to make writing unit tests simpler.
+from zope.testing.cleanup import addCleanUp
+addCleanUp(translationService.__init__)
+del addCleanUp