Support nose framework for the whole test suite.

--HG--
branch : trunk
diff --git a/tests/test_syntax.py b/tests/test_syntax.py
index 5e9e804..2e8877a 100644
--- a/tests/test_syntax.py
+++ b/tests/test_syntax.py
@@ -6,10 +6,15 @@
     :copyright: (c) 2009 by the Jinja Team.
     :license: BSD, see LICENSE for more details.
 """
-from py.test import raises
 from jinja2 import Environment, DictLoader
 from jinja2.exceptions import TemplateSyntaxError, UndefinedError
 
+import conftest
+if conftest.NOSE:
+    from nose.tools import assert_raises as raises
+else:
+    from py.test import raises
+
 
 CALL = '''{{ foo('a', c='d', e='f', *['b'], **{'g': 'h'}) }}'''
 SLICING = '''{{ [1, 2, 3][:] }}|{{ [1, 2, 3][::-1] }}'''