Skip to content

Commit

Permalink
Update conftest for examples for failing test on Linux + Python 3.8 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jul 14, 2023
1 parent ae79eec commit e83355c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions examples/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys
import platform

import pandas as pd
from packaging.version import Version
Expand All @@ -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",
]

0 comments on commit e83355c

Please sign in to comment.