diff options
author | Gerhard Weis <g.weis@uq.edu.au> | 2021-12-13 08:43:12 +1000 |
---|---|---|
committer | Gerhard Weis <g.weis@uq.edu.au> | 2021-12-13 08:43:12 +1000 |
commit | 6bebac0913c431a0406c7851e2d3356822b59baa (patch) | |
tree | 544e5ada1e41df89a63dcb4799a0eaceb97fa77e /src/isodate | |
parent | dc0d2b81e5c749fe70f50d5f024ff007f8798bba (diff) | |
parent | 04a2c1c4839109517fc8453ed815726f6ba88c9f (diff) | |
download | isodate-6bebac0913c431a0406c7851e2d3356822b59baa.tar.gz |
Merge branch 'PR60'
* PR60:
Use non-beta Python 3.8 on Travis
Use Python 3.8 beta on Travis
PEP8: 79 chars
Use Xenial on Travis to test on Python3.7
Fix Python 3.8 DeprecationWarning
Add support for py37 and py38
Raise warnings produced by isodate as errors during tests
Avoid unclosed file warning
# Conflicts:
# .travis.yml
# setup.py
# src/isodate/duration.py
# src/isodate/tests/__init__.py
# tox.ini
Diffstat (limited to 'src/isodate')
-rw-r--r-- | src/isodate/tests/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/isodate/tests/__init__.py b/src/isodate/tests/__init__.py index f68a79b..ea0f433 100644 --- a/src/isodate/tests/__init__.py +++ b/src/isodate/tests/__init__.py @@ -3,6 +3,7 @@ Collect all test suites into one TestSuite instance. """ import unittest +import warnings from isodate.tests import ( test_date, test_time, @@ -17,6 +18,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(), |