Merge pull request #650 from hugovk/ignorecoveragewarning

Ignore PendingDeprecationWarning from Coverage for Py 3.4
This commit is contained in:
wiredfool 2014-05-09 08:58:18 -07:00
commit 958397ae02
2 changed files with 6 additions and 2 deletions

View File

@ -35,8 +35,9 @@ after_success:
- pip install pep8 pyflakes
- pep8 PIL/*.py
- pyflakes PIL/*.py
- pep8 Tests/*.py
- pyflakes Tests/*.py
matrix:
allow_failures:
- python: "pypy"
- python: 3.4

View File

@ -345,7 +345,10 @@ def _setup():
import sys
if "--coverage" in sys.argv:
import coverage
# Temporary: ignore PendingDeprecationWarning from Coverage (Py3.4)
with warnings.catch_warnings():
warnings.simplefilter("ignore")
import coverage
cov = coverage.coverage(auto_data=True, include="PIL/*")
cov.start()