summaryrefslogtreecommitdiff
path: root/pytest.ini
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-01-07 13:51:02 -0800
committerAnthony Sottile <asottile@umich.edu>2019-01-07 19:19:21 -0800
commitafe1ba4f619427afeaf95795ac0676153069a1f4 (patch)
treeedcd1c98ef5dfd326dec9a2672f4510268004bbd /pytest.ini
parent894c4ac9ee2a2309bfdf873a841cd9fc2f05df1b (diff)
downloadflake8-afe1ba4f619427afeaf95795ac0676153069a1f4.tar.gz
Enforce warnings under test
Diffstat (limited to 'pytest.ini')
-rw-r--r--pytest.ini6
1 files changed, 6 insertions, 0 deletions
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