]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Disable module loader test case on pypy because they are not supported
authorArmin Ronacher <armin.ronacher@active-4.com>
Mon, 20 May 2013 01:00:02 +0000 (02:00 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Mon, 20 May 2013 01:00:02 +0000 (02:00 +0100)
jinja2/testsuite/loader.py

index 9368698dcf7fb4d3f4bbc6d366c51890298c8e5e..3412d154eca62f5855bab6f025753b4f727378f9 100644 (file)
@@ -221,5 +221,8 @@ class ModuleLoaderTestCase(JinjaTestCase):
 def suite():
     suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(LoaderTestCase))
-    suite.addTest(unittest.makeSuite(ModuleLoaderTestCase))
+    # pypy currently does not support compiled jinja modules because
+    # of changes in the load system.
+    if not hasattr(sys, 'pypy_version_info'):
+        suite.addTest(unittest.makeSuite(ModuleLoaderTestCase))
     return suite