Disabled memory tests by default

This commit is contained in:
Armin Ronacher 2013-05-14 11:51:38 +01:00
parent 335e0af731
commit 574a97cd70
2 changed files with 7 additions and 3 deletions

View file

@ -1,10 +1,13 @@
.PHONY: clean-pyc ext-test test upload-docs docs audit .PHONY: clean-pyc ext-test test test-with-mem upload-docs docs audit
all: clean-pyc test all: clean-pyc test
test: test:
python run-tests.py python run-tests.py
test-with-mem:
RUN_FLASK_MEMORY_TESTS=1 python run-tests.py
audit: audit:
python setup.py audit python setup.py audit

View file

@ -11,12 +11,12 @@
from __future__ import with_statement from __future__ import with_statement
import os
import gc import gc
import sys import sys
import flask import flask
import threading import threading
import unittest import unittest
from werkzeug.test import run_wsgi_app, create_environ
from werkzeug.exceptions import NotFound from werkzeug.exceptions import NotFound
from flask.testsuite import FlaskTestCase from flask.testsuite import FlaskTestCase
@ -112,6 +112,7 @@ class ExceptionTestCase(FlaskTestCase):
def suite(): def suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MemoryTestCase)) if os.environ.get('RUN_FLASK_MEMORY_TESTS') == '1':
suite.addTest(unittest.makeSuite(MemoryTestCase))
suite.addTest(unittest.makeSuite(ExceptionTestCase)) suite.addTest(unittest.makeSuite(ExceptionTestCase))
return suite return suite