diff options
-rw-r--r-- | src/isodate/tests/__init__.py | 3 | ||||
-rw-r--r-- | tox.ini | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/isodate/tests/__init__.py b/src/isodate/tests/__init__.py index b1d46bd..7208cbd 100644 --- a/src/isodate/tests/__init__.py +++ b/src/isodate/tests/__init__.py @@ -29,6 +29,7 @@ Collect all test suites into one TestSuite instance. ''' import unittest +import warnings from isodate.tests import (test_date, test_time, test_datetime, test_duration, test_strf, test_pickle) @@ -37,6 +38,8 @@ def test_suite(): ''' Return a new TestSuite instance consisting of all available TestSuites. ''' + warnings.filterwarnings("error", module=r"isodate(\..)*") + return unittest.TestSuite([ test_date.test_suite(), test_time.test_suite(), @@ -3,6 +3,8 @@ envlist = py27,py34,py35,py36,pypy,pypy3,flake,cover [testenv] deps = +setenv = + PYTHONWARNINGS = default commands = {envpython} setup.py test |