diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-04-24 06:05:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 06:05:00 (GMT) |
commit | 2e576f5aec1f8f23f07001e2eb3db9276851a4fc (patch) | |
tree | 0c42af143f2ab71bce5865aa72056330fcc510db /Lib/test/test_statistics.py | |
parent | 9eb5ca0774f94215be48442100c829db2484e146 (diff) | |
download | cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.zip cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.gz cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.bz2 |
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
Diffstat (limited to 'Lib/test/test_statistics.py')
-rw-r--r-- | Lib/test/test_statistics.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index 4b3fd36..b577433 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -4,6 +4,7 @@ approx_equal function. """ import collections +import collections.abc import decimal import doctest import math @@ -218,8 +219,8 @@ class NumericTestCase(unittest.TestCase): if rel is None: rel = self.rel if ( - isinstance(first, collections.Sequence) and - isinstance(second, collections.Sequence) + isinstance(first, collections.abc.Sequence) and + isinstance(second, collections.abc.Sequence) ): check = self._check_approx_seq else: |