From 87157a9a97fdeaa6f089b209eada8bd316e81761 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 11 Apr 2014 14:22:59 -0400 Subject: - add support for py.test - make test_mako not actually fail if the plugin isn't found, only if it actually fails to load if found --- tests/cache/test_mako.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/cache/test_mako.py') diff --git a/tests/cache/test_mako.py b/tests/cache/test_mako.py index 03c060c..d3f0656 100644 --- a/tests/cache/test_mako.py +++ b/tests/cache/test_mako.py @@ -9,10 +9,9 @@ class MakoTest(TestCase): def test_entry_point(self): import pkg_resources - + + # if the entrypoint isn't there, just pass, as the tests can be run + # without any setuptools install for impl in pkg_resources.iter_entry_points("mako.cache", "dogpile.cache"): - print impl impl.load() - return - else: - assert 0, "Missing entry point 'dogpile.cache' for 'mako.cache'" + -- cgit v1.2.1