From 1607bdbcf8dfc59d3226ee5b8745a4a1d0a0bb75 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 5 Dec 2016 11:39:40 -0500 Subject: Silence an internal pytest deprecation warning --- igor.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'igor.py') diff --git a/igor.py b/igor.py index 8e09cd0d..2048d161 100644 --- a/igor.py +++ b/igor.py @@ -28,6 +28,12 @@ warnings.simplefilter("default") # Silence specific warnings that are not our fault. warnings.filterwarnings("ignore", module="xdist", message="type argument to addoption") +warnings.filterwarnings( + # https://github.com/pytest-dev/pytest/issues/2118 + "ignore", + module="_pytest", + message="This usage is deprecated, please use pytest.* instead" +) @contextlib.contextmanager -- cgit v1.2.1