Skip to content

Commit

Permalink
Update conftest for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jul 14, 2023
1 parent ae79eec commit ee3a27f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions examples/conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import sys

import pandas as pd
from packaging.version import Version

PD2 = Version(pd.__version__) >= Version("2.0")
import platform

# Having "OMP_NUM_THREADS"=1, set as an environment variable, can be needed
# to avoid crashing when running tests with pytest-xdist on Windows.
Expand All @@ -20,10 +16,10 @@
]


# Pandas bug: https://github.com/pandas-dev/pandas/issues/52451
if PD2 and sys.platform == "win32":
if sys.version_info == (3, 8) and platform.system() == "Linux":
# from matplotlib.cbook import get_sample_data has problem
# on Windows with Python 3.8.
collect_ignore_glob += [
"gallery/demos/bokeh/point_draw_triangulate.ipynb",
"reference/elements/*/TriMesh.ipynb",
"user_guide/15-Large_Data.ipynb",
"gallery/demos/*/bachelors_degrees_by_gender.ipynb",
"gallery/demos/*/topographic_hillshading.ipynb",
]

0 comments on commit ee3a27f

Please sign in to comment.