Permalink
Browse files

Skip template leak test when not CPython2.7, #452.

  • Loading branch information...
rduplain committed Apr 24, 2012
1 parent 148c50a commit 2262ce4915aec0dfffa8e71244ebe10f72d11111
Showing with 6 additions and 3 deletions.
  1. +6 −3 flask/testsuite/regression.py
@@ -72,9 +72,12 @@ def fire():
# Trigger caches
fire()
- with self.assert_no_leak():
- for x in xrange(10):
- fire()
+ # This test only works on CPython 2.7.
+ if sys.version_info >= (2, 7) and \
+ not hasattr(sys, 'pypy_translation_info'):
+ with self.assert_no_leak():
+ for x in xrange(10):
+ fire()
def suite():

0 comments on commit 2262ce4

Please sign in to comment.