Support nose framework for the whole test suite.
[jinja2.git] / tests / test_old_bugs.py
index 59d6037e6c668842eccbd98bb973ef83f2aca6ce..7815bb766c9fcca03e2021c8f656bc1e04a00c72 100644 (file)
@@ -8,9 +8,14 @@
     :copyright: (c) 2009 by the Jinja Team.
     :license: BSD.
 """
-from py.test import raises
 from jinja2 import Environment, DictLoader, TemplateSyntaxError
 
+import conftest
+if conftest.NOSE:
+    from nose.tools import assert_raises as raises
+else:
+    from py.test import raises
+
 
 def test_keyword_folding():
     env = Environment()