diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-10-01 14:16:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 14:16:37 (GMT) |
commit | 282992b36f9fe27183037051f3b37210884600af (patch) | |
tree | d2afa440014f7213583dc52b721c28a343ebcd8d /Modules/_decimal | |
parent | fc3511f18e92ea345092aa59a4225218bd19e153 (diff) | |
download | cpython-282992b36f9fe27183037051f3b37210884600af.zip cpython-282992b36f9fe27183037051f3b37210884600af.tar.gz cpython-282992b36f9fe27183037051f3b37210884600af.tar.bz2 |
bpo-45332: Fix broken Decimal test and benchmark (GH-28680)
(cherry picked from commit 9eed75fde226cec5a02301cfac1dc8039b5a183e)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Diffstat (limited to 'Modules/_decimal')
-rw-r--r-- | Modules/_decimal/tests/bench.py | 5 | ||||
-rw-r--r-- | Modules/_decimal/tests/deccheck.py | 2 | ||||
-rw-r--r-- | Modules/_decimal/tests/formathelper.py | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/Modules/_decimal/tests/bench.py b/Modules/_decimal/tests/bench.py index 3726db1..24e091b 100644 --- a/Modules/_decimal/tests/bench.py +++ b/Modules/_decimal/tests/bench.py @@ -7,10 +7,7 @@ import time -try: - from test.support import import_fresh_module -except ImportError: - from test.test_support import import_fresh_module +from test.support.import_helper import import_fresh_module C = import_fresh_module('decimal', fresh=['_decimal']) P = import_fresh_module('decimal', blocked=['_decimal']) diff --git a/Modules/_decimal/tests/deccheck.py b/Modules/_decimal/tests/deccheck.py index 98ecd50..edf753f 100644 --- a/Modules/_decimal/tests/deccheck.py +++ b/Modules/_decimal/tests/deccheck.py @@ -47,7 +47,7 @@ from subprocess import PIPE, STDOUT from queue import Queue, Empty from threading import Thread, Event, Lock -from test.support import import_fresh_module +from test.support.import_helper import import_fresh_module from randdec import randfloat, all_unary, all_binary, all_ternary from randdec import unary_optarg, binary_optarg, ternary_optarg from formathelper import rand_format, rand_locale diff --git a/Modules/_decimal/tests/formathelper.py b/Modules/_decimal/tests/formathelper.py index 19b2aad..c3daacf 100644 --- a/Modules/_decimal/tests/formathelper.py +++ b/Modules/_decimal/tests/formathelper.py @@ -31,7 +31,7 @@ import os, sys, locale, random import platform, subprocess -from test.support import import_fresh_module +from test.support.import_helper import import_fresh_module from distutils.spawn import find_executable C = import_fresh_module('decimal', fresh=['_decimal']) |