From 85dbcc45b5776987f885fbc15bfa2cc3d0459758 Mon Sep 17 00:00:00 2001 From: Matt Roeschke Date: Fri, 27 Dec 2019 20:28:06 -0800 Subject: [PATCH 1/2] WARN: Ignore NumbaPerformanceWarning in test suite --- pandas/tests/window/test_numba.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/tests/window/test_numba.py b/pandas/tests/window/test_numba.py index 66e4d4e2e7145..22ae8eab9c71a 100644 --- a/pandas/tests/window/test_numba.py +++ b/pandas/tests/window/test_numba.py @@ -8,6 +8,7 @@ @td.skip_if_no("numba", "0.46.0") +@pytest.mark.filterwarnings("ignore:\\nThe keyword argument") class TestApply: @pytest.mark.parametrize("jit", [True, False]) def test_numba_vs_cython(self, jit, nogil, parallel, nopython): From b07097343faf30ffde794b30dc242b1d1fd38af8 Mon Sep 17 00:00:00 2001 From: Matt Roeschke Date: Fri, 27 Dec 2019 21:00:41 -0800 Subject: [PATCH 2/2] Add comment about warning filter --- pandas/tests/window/test_numba.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/tests/window/test_numba.py b/pandas/tests/window/test_numba.py index 22ae8eab9c71a..2fbf05f678431 100644 --- a/pandas/tests/window/test_numba.py +++ b/pandas/tests/window/test_numba.py @@ -9,6 +9,7 @@ @td.skip_if_no("numba", "0.46.0") @pytest.mark.filterwarnings("ignore:\\nThe keyword argument") +# Filter warnings when parallel=True and the function can't be parallelized by Numba class TestApply: @pytest.mark.parametrize("jit", [True, False]) def test_numba_vs_cython(self, jit, nogil, parallel, nopython):