Skip to content

bpo-45332: Fix broken Decimal test and benchmark #28680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Modules/_decimal/tests/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down
2 changes: 1 addition & 1 deletion Modules/_decimal/tests/deccheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Modules/_decimal/tests/formathelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down