summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2011-05-11 10:52:45 -0400
committerTres Seaver <tseaver@palladion.com>2011-05-11 10:52:45 -0400
commit7f9f373ddee95715909c82aeb20ac3a2984439df (patch)
tree429a9808313e7504cc4bf53fbfa04a03c848cecd
parent60e7ba931599db835968e5248d31bba6db08a447 (diff)
downloadpyramid-7f9f373ddee95715909c82aeb20ac3a2984439df.tar.gz
pyramid-7f9f373ddee95715909c82aeb20ac3a2984439df.tar.bz2
pyramid-7f9f373ddee95715909c82aeb20ac3a2984439df.zip
Silence stupid deprecation under Python >= 2.7.
-rw-r--r--pyramid/tests/test_paster.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyramid/tests/test_paster.py b/pyramid/tests/test_paster.py
index 2239d81ea..89b023852 100644
--- a/pyramid/tests/test_paster.py
+++ b/pyramid/tests/test_paster.py
@@ -327,6 +327,10 @@ class TestPViewsCommand(unittest.TestCase):
def _makeOne(self):
return self._getTargetClass()('pviews')
+ def failUnless(self, condition):
+ # silence stupid deprecation under Python >= 2.7
+ self.assertTrue(condition)
+
def test__find_view_no_match(self):
from pyramid.registry import Registry
registry = Registry()