We have so many tests we make nose crash!
We raise the recursion limit, as the recursion here is normal. This happens with nose 1.3.4.
This commit is contained in:
parent
db1618e86f
commit
d500abf336
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys
|
||||
from random import choice
|
||||
from unittest import TestCase
|
||||
|
||||
|
|
@ -56,6 +57,9 @@ class BackendTest(TestCase):
|
|||
Call the parent run() for each backend instance.
|
||||
Skip the test if we have no backends.
|
||||
"""
|
||||
# This is a hack to fix an issue with nosetests running
|
||||
# with many tests. The default is 1000.
|
||||
sys.setrecursionlimit(10000)
|
||||
try:
|
||||
if not len(self.backends):
|
||||
result.startTest(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue