Browse Source

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

pull/502/head
Ron DuPlain 13 years ago
parent
commit
2262ce4915
  1. 9
      flask/testsuite/regression.py

9
flask/testsuite/regression.py

@ -72,9 +72,12 @@ class MemoryTestCase(FlaskTestCase):
# Trigger caches # Trigger caches
fire() fire()
with self.assert_no_leak(): # This test only works on CPython 2.7.
for x in xrange(10): if sys.version_info >= (2, 7) and \
fire() not hasattr(sys, 'pypy_translation_info'):
with self.assert_no_leak():
for x in xrange(10):
fire()
def suite(): def suite():

Loading…
Cancel
Save