summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-12-05 11:39:40 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-12-05 11:39:40 -0500
commit45ea51906343e7f046f8a5d235eb56152cffe417 (patch)
treee0b0d5601e7afb7d51e2efa9943e30c8b4c36f93
parent8a90fac509b4905688dc93ecf0b688246738e415 (diff)
downloadpython-coveragepy-45ea51906343e7f046f8a5d235eb56152cffe417.tar.gz
Silence an internal pytest deprecation warning
-rw-r--r--igor.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/igor.py b/igor.py
index 8e09cd0..2048d16 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