mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21448)
This commit is contained in:
parent
bb0424b122
commit
4660597b51
20 changed files with 185 additions and 154 deletions
|
@ -3,9 +3,13 @@ import pickle
|
|||
import sys
|
||||
|
||||
from test import support
|
||||
from test.support import import_helper
|
||||
|
||||
py_operator = support.import_fresh_module('operator', blocked=['_operator'])
|
||||
c_operator = support.import_fresh_module('operator', fresh=['_operator'])
|
||||
|
||||
py_operator = import_helper.import_fresh_module('operator',
|
||||
blocked=['_operator'])
|
||||
c_operator = import_helper.import_fresh_module('operator',
|
||||
fresh=['_operator'])
|
||||
|
||||
class Seq1:
|
||||
def __init__(self, lst):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue