Skip to content
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
9 changes: 3 additions & 6 deletions Modules/_decimal/tests/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@


import time
try:
from test.support import import_fresh_module
except ImportError:
from test.test_support import import_fresh_module

C = import_fresh_module('decimal', fresh=['_decimal'])
P = import_fresh_module('decimal', blocked=['_decimal'])
import _decimal as C
import _pydecimal as P


#
# NOTE: This is the pi function from the decimal documentation, modified
Expand Down
7 changes: 4 additions & 3 deletions Modules/_decimal/tests/deccheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
from queue import Queue, Empty
from threading import Thread, Event, Lock

from test.support 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 All @@ -52,8 +51,10 @@
from _testcapi import decimal_as_triple
from _testcapi import decimal_from_triple

C = import_fresh_module('decimal', fresh=['_decimal'])
P = import_fresh_module('decimal', blocked=['_decimal'])
import _decimal as C
import _pydecimal as P


EXIT_STATUS = 0


Expand Down
5 changes: 2 additions & 3 deletions Modules/_decimal/tests/formathelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@

import os, sys, locale, random
import platform, subprocess
from test.support import import_fresh_module
from distutils.spawn import find_executable

C = import_fresh_module('decimal', fresh=['_decimal'])
P = import_fresh_module('decimal', blocked=['_decimal'])
import _decimal as C
import _pydecimal as P


windows_lang_strings = [
Expand Down