From de995ab157a8747ec1b748e4e10ecd3249f31f16 Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Mon, 1 Feb 2021 11:05:19 -0800 Subject: [PATCH] Backport PR #39534: CI: numpy warnings produced by pytables --- pandas/tests/io/pytables/__init__.py | 3 +++ pandas/tests/window/__init__.py | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/pandas/tests/io/pytables/__init__.py b/pandas/tests/io/pytables/__init__.py index fb4b317a5e977..d3735f8863c3b 100644 --- a/pandas/tests/io/pytables/__init__.py +++ b/pandas/tests/io/pytables/__init__.py @@ -6,4 +6,7 @@ "ignore:a closed node found in the registry:UserWarning" ), pytest.mark.filterwarnings(r"ignore:tostring\(\) is deprecated:DeprecationWarning"), + pytest.mark.filterwarnings( + r"ignore:`np\.object` is a deprecated alias:DeprecationWarning" + ), ] diff --git a/pandas/tests/window/__init__.py b/pandas/tests/window/__init__.py index e69de29bb2d1d..757bdfe755038 100644 --- a/pandas/tests/window/__init__.py +++ b/pandas/tests/window/__init__.py @@ -0,0 +1,8 @@ +import pytest + +pytestmark = [ + # 2021-02-01 needed until numba updates their usage + pytest.mark.filterwarnings( + r"ignore:`np\.int` is a deprecated alias:DeprecationWarning" + ), +]