From d500abf3361470a9662f49911ed050bda81e5026 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Tue, 14 Oct 2014 12:25:43 +0200 Subject: [PATCH] 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. --- weboob/tools/test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weboob/tools/test.py b/weboob/tools/test.py index 52281340..f9c60377 100644 --- a/weboob/tools/test.py +++ b/weboob/tools/test.py @@ -17,6 +17,7 @@ # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . +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)