diff options
| author | Hai Shi <shihai1992@gmail.com> | 2020-08-06 11:51:29 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-06 11:51:29 (GMT) |
| commit | 79bb2c93f2d81702fdf1f93720369e18a76b7d1a (patch) | |
| tree | 6ab9d0c6ef07954cc871dd6eb06f3a80329d33e6 /Lib/test/test_statistics.py | |
| parent | 52f98424a55e14f05dfa7483cc0faf634a61c9ff (diff) | |
| download | cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.zip cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.tar.gz cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.tar.bz2 | |
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
Diffstat (limited to 'Lib/test/test_statistics.py')
| -rw-r--r-- | Lib/test/test_statistics.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index bf415dd..9971107 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -15,10 +15,10 @@ import random import sys import unittest from test import support +from test.support import import_helper from decimal import Decimal from fractions import Fraction -from test import support # Module to be tested. @@ -179,8 +179,10 @@ class _DoNothing: # We prefer this for testing numeric values that may not be exactly equal, # and avoid using TestCase.assertAlmostEqual, because it sucks :-) -py_statistics = support.import_fresh_module('statistics', blocked=['_statistics']) -c_statistics = support.import_fresh_module('statistics', fresh=['_statistics']) +py_statistics = import_helper.import_fresh_module('statistics', + blocked=['_statistics']) +c_statistics = import_helper.import_fresh_module('statistics', + fresh=['_statistics']) class TestModules(unittest.TestCase): |
