forked from orbit-oss/flask
Skip template leak test when not CPython2.7, #452.
This commit is contained in:
parent
148c50abf9
commit
2262ce4915
1 changed files with 6 additions and 3 deletions
|
|
@ -72,9 +72,12 @@ class MemoryTestCase(FlaskTestCase):
|
|||
# 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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue