- use a SkipTest pytest can find
diff --git a/test/__init__.py b/test/__init__.py index 666318f..22d1c83 100644 --- a/test/__init__.py +++ b/test/__init__.py
@@ -8,9 +8,11 @@ from mako.cache import CacheImpl, register_plugin try: + # unitttest has a SkipTest also but pytest doesn't + # honor it unless nose is imported too... from nose import SkipTest except ImportError: - from unittest import SkipTest + from _pytest.runner import Skipped as SkipTest import contextlib