Skip to content

Commit 282992b

Browse files
bpo-45332: Fix broken Decimal test and benchmark (GH-28680)
(cherry picked from commit 9eed75f) Co-authored-by: Dong-hee Na <[email protected]>
1 parent fc3511f commit 282992b

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Modules/_decimal/tests/bench.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77

88

99
import time
10-
try:
11-
from test.support import import_fresh_module
12-
except ImportError:
13-
from test.test_support import import_fresh_module
10+
from test.support.import_helper import import_fresh_module
1411

1512
C = import_fresh_module('decimal', fresh=['_decimal'])
1613
P = import_fresh_module('decimal', blocked=['_decimal'])

Modules/_decimal/tests/deccheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
from queue import Queue, Empty
4848
from threading import Thread, Event, Lock
4949

50-
from test.support import import_fresh_module
50+
from test.support.import_helper import import_fresh_module
5151
from randdec import randfloat, all_unary, all_binary, all_ternary
5252
from randdec import unary_optarg, binary_optarg, ternary_optarg
5353
from formathelper import rand_format, rand_locale

Modules/_decimal/tests/formathelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
import os, sys, locale, random
3333
import platform, subprocess
34-
from test.support import import_fresh_module
34+
from test.support.import_helper import import_fresh_module
3535
from distutils.spawn import find_executable
3636

3737
C = import_fresh_module('decimal', fresh=['_decimal'])

0 commit comments

Comments
 (0)