Log message for revision 68294: Don't show deprecation warnings during running tests.
Changed: U Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/tests/testTALES.py -=- Modified: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/tests/testTALES.py =================================================================== --- Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/tests/testTALES.py 2006-05-25 21:24:36 UTC (rev 68293) +++ Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/tests/testTALES.py 2006-05-25 21:57:05 UTC (rev 68294) @@ -1,6 +1,17 @@ import unittest +# BBB 2005/05/01 -- to be changed after 12 months +# ignore deprecation warnings on import for now +import warnings +showwarning = warnings.showwarning +warnings.showwarning = lambda *a, **k: None +# this old import should remain here until the TALES.py module is +# completely removed, so that API backward compatibility is properly +# tested from Products.PageTemplates import TALES +# restore warning machinery +warnings.showwarning = showwarning + from zope.tales.tests.test_tales import Harness class DummyUnicodeExpr: _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins