summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/test_template.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-09-28 16:18:13 +0000
committerChris McDonough <chrism@agendaless.com>2008-09-28 16:18:13 +0000
commite3c69c7c7dc09cf39e578e1df4b106745d02f48f (patch)
treecf469cf0ac1d85718ecf5182052df46734d74c5a /repoze/bfg/tests/test_template.py
parent85fd25e371b381ad4e76738e8f672261a9d66d75 (diff)
downloadpyramid-e3c69c7c7dc09cf39e578e1df4b106745d02f48f.tar.gz
pyramid-e3c69c7c7dc09cf39e578e1df4b106745d02f48f.tar.bz2
pyramid-e3c69c7c7dc09cf39e578e1df4b106745d02f48f.zip
- A deprecation warning is now issued when old API names from the
``repoze.bfg.templates`` module are imported.
Diffstat (limited to 'repoze/bfg/tests/test_template.py')
-rw-r--r--repoze/bfg/tests/test_template.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/repoze/bfg/tests/test_template.py b/repoze/bfg/tests/test_template.py
index 42baa6492..f66d045cd 100644
--- a/repoze/bfg/tests/test_template.py
+++ b/repoze/bfg/tests/test_template.py
@@ -4,9 +4,13 @@ from zope.component.testing import PlacelessSetup
class Base(PlacelessSetup):
def setUp(self):
+ from zope.deprecation import __show__
+ __show__.off()
PlacelessSetup.setUp(self)
def tearDown(self):
+ from zope.deprecation import __show__
+ __show__.on()
PlacelessSetup.tearDown(self)
def _zcmlConfigure(self):