Skip to content

Commit

Permalink
Skip template leak test when not CPython2.7, pallets#452.
Browse files Browse the repository at this point in the history
  • Loading branch information
rduplain committed Apr 24, 2012
1 parent 148c50a commit 2262ce4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flask/testsuite/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 2262ce4

Please sign in to comment.