Support nose framework for the whole test suite.
--HG--
branch : trunk
diff --git a/tests/test_forloop.py b/tests/test_forloop.py
index c5bac48..0c93484 100644
--- a/tests/test_forloop.py
+++ b/tests/test_forloop.py
@@ -6,9 +6,14 @@
:copyright: (c) 2009 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
-from py.test import raises
from jinja2.exceptions import UndefinedError, TemplateSyntaxError
+import conftest
+if conftest.NOSE:
+ from nose.tools import assert_raises as raises
+else:
+ from py.test import raises
+
SIMPLE = '''{% for item in seq %}{{ item }}{% endfor %}'''
ELSE = '''{% for item in seq %}XXX{% else %}...{% endfor %}'''