From afe1ba4f619427afeaf95795ac0676153069a1f4 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 7 Jan 2019 13:51:02 -0800 Subject: [PATCH] Enforce warnings under test --- pytest.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pytest.ini b/pytest.ini index 39a29fe..bbe2275 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,9 @@ [pytest] norecursedirs = .git .* *.egg* old docs dist build addopts = -rw +filterwarnings = + error + # python2.x `configparser` warns about native string but it works fine + ignore:You passed a bytestring as `filenames`.*:DeprecationWarning + # python3.4 raises this when importing setuptools + ignore:The value of convert_charrefs will become True in 3.5.*:DeprecationWarning