diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-12-05 11:39:40 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-12-05 11:39:40 -0500 |
commit | 45ea51906343e7f046f8a5d235eb56152cffe417 (patch) | |
tree | e0b0d5601e7afb7d51e2efa9943e30c8b4c36f93 | |
parent | 8a90fac509b4905688dc93ecf0b688246738e415 (diff) | |
download | python-coveragepy-45ea51906343e7f046f8a5d235eb56152cffe417.tar.gz |
Silence an internal pytest deprecation warning
-rw-r--r-- | igor.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |