Skip to content

Commit af97887

Browse files
committed
tests: Treat ResourceWarning as an error
This will hopefully prevent new cases creeping in. Note: ResourceWarning doesn't exist in Python 2.x, it was added in Python 3.2.
1 parent d032c59 commit af97887

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ setenv =
110110
NOCOVERAGE_ERASE = 1
111111
NOCOVERAGE_REPORT = 1
112112
PIP_CONSTRAINT={toxinidir}/tests/constraints.txt
113+
PYTHONWARNINGS=error::ResourceWarning,default
113114
# Only applicable to MODE=mitogen
114115
distro_centos5: DISTRO=centos5
115116
distro_centos6: DISTRO=centos6

0 commit comments

Comments
 (0)