8000 Work round unicode error for Python 3.x · MacPython/matplotlib-wheels@afaabb0 · GitHub
[go: up one dir, main page]

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

Commit afaabb0

Browse files
committed
Work round unicode error for Python 3.x
1 parent 74503b4 commit afaabb0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

config.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ function run_tests {
4040
python -c "from matplotlib import font_manager"
4141

4242
echo "testing matplotlib using 1 process"
43-
python $MPL_SRC_DIR/tests.py -sv
43+
# 1.5.x has pesky unicode error for sphinx extension test
44+
local mpl_version=$(python -c "import matplotlib; print(matplotlib.__version__)")
45+
if [[ "$mpl_version" =~ 1\. ]]; then
46+
local extra_test_args="-e TestTinyPages"
47+
fi
48+
python $MPL_SRC_DIR/tests.py -sv $extra_test_args
4449

4550
echo "Check import of tcl / tk"
4651
MPLBACKEND="tkagg" python -c 'import matplotlib.pyplot as plt; print(plt.get_backend())'

0 commit comments

Comments
 (0)
0