bpo-45332: Fix broken Decimal test and benchmark (GH-28680)

This commit is contained in:
Dong-hee Na 2021-10-01 13:49:46 +00:00 committed by GitHub
parent 9ce0f48e91
commit 9eed75fde2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View 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'])

View file

@ -47,7 +47,7 @@
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

View 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'])