Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit c7682b5

Browse files
committed
Try increasing recursion limit
1 parent e703683 commit c7682b5

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

config.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ function run_tests {
4747
python -c "import matplotlib; print(matplotlib.__file__)"
4848
python -c "from matplotlib import font_manager"
4949

50+
# Patch testing function for recursion
51+
(cd $MPL_SRC_DIR && patch -p1 < ../recursion.patch)
52+
5053
echo "testing matplotlib using 1 process"
5154
# 1.5.x has pesky unicode error for sphinx extension test
5255
local mpl_version=$(python -c "import matplotlib; print(matplotlib.__version__)")

recursion.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/tests.py b/tests.py
2+
index 1686818..9b13392 100755
3+
--- a/tests.py
4+
+++ b/tests.py
5+
@@ -13,6 +13,8 @@ import os
6+
import sys
7+
import time
8+
9+
+sys.setrecursionlimit(2000)
10+
+
11+
import matplotlib
12+
matplotlib.use('agg')
13+

0 commit comments

Comments
 (0)