From e83355c4d1d416a89e5c1222e50e887bf311dc90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Fri, 14 Jul 2023 21:06:37 +0200 Subject: [PATCH] Update conftest for examples for failing test on Linux + Python 3.8 (#5806) --- examples/conftest.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/examples/conftest.py b/examples/conftest.py index e66981da6a..c47a095abf 100644 --- a/examples/conftest.py +++ b/examples/conftest.py @@ -1,4 +1,5 @@ import sys +import platform import pandas as pd from packaging.version import Version @@ -20,10 +21,20 @@ ] -# Pandas bug: https://github.com/pandas-dev/pandas/issues/52451 -if PD2 and sys.platform == "win32": +# 2022-07-14 with following error: +# ValueError: Buffer dtype mismatch, expected 'const int64_t' but got 'int' +if PD2 and platform.system() == "Windows": collect_ignore_glob += [ "gallery/demos/bokeh/point_draw_triangulate.ipynb", "reference/elements/*/TriMesh.ipynb", "user_guide/15-Large_Data.ipynb", ] + + +# 2022-07-14 with following error: +# 'from matplotlib.cbook import get_sample_data' cannot find file +if sys.version_info[:2] == (3, 8) and platform.system() == "Linux": + collect_ignore_glob += [ + "gallery/demos/*/bachelors_degrees_by_gender.ipynb", + "gallery/demos/*/topographic_hillshading.ipynb", + ]