]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45332: Fix broken Decimal test and benchmark (GH-28680)
authorDong-hee Na <donghee.na@python.org>
Fri, 1 Oct 2021 13:49:46 +0000 (13:49 +0000)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 13:49:46 +0000 (22:49 +0900)
Modules/_decimal/tests/bench.py
Modules/_decimal/tests/deccheck.py
Modules/_decimal/tests/formathelper.py

index 3726db194e032f24a975db001d178f9cb3792049..24e091b6887ccdf4b71250b7b72bb2043c1ca14a 100644 (file)
@@ -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'])
index 98ecd502c03fe910b79fdf4881c545f31406d0e9..edf753f3704a18347ac3df8a4de7ee7368e46529 100644 (file)
@@ -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
index 19b2aad4a503b1e2bc1904ac50a03550810ac9d5..c3daacfb7b44f464698bc66f43ee114c7cd275c8 100644 (file)
@@ -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'])