From 0dd5d493d5a74b83d965402edbdd1dcffbcaa3d3 Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Mon, 21 Feb 2022 16:20:33 +0100 Subject: [PATCH] py-pandas: fix tests (#29044) --- var/spack/repos/builtin/packages/py-pandas/package.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/py-pandas/package.py b/var/spack/repos/builtin/packages/py-pandas/package.py index a116d9bb6b..3211b9a5a2 100644 --- a/var/spack/repos/builtin/packages/py-pandas/package.py +++ b/var/spack/repos/builtin/packages/py-pandas/package.py @@ -101,9 +101,13 @@ class PyPandas(PythonPackage): @property def import_modules(self): - modules = super(PythonPackage, self).import_modules + modules = super(__class__, self).import_modules - ignored_imports = ["pandas.tests", "pandas.plotting._matplotlib"] + ignored_imports = [ + "pandas.tests", + "pandas.plotting._matplotlib", + "pandas.core._numba.kernels" + ] return [i for i in modules if not any(map(i.startswith, ignored_imports))]