mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
This commit is contained in:
parent
604bba1f8f
commit
c7decc27d5
19 changed files with 58 additions and 46 deletions
|
|
@ -6,11 +6,12 @@ import re
|
|||
import sys
|
||||
import unittest
|
||||
from test import support
|
||||
from test.support import import_helper
|
||||
from distutils.util import get_platform
|
||||
from contextlib import contextmanager
|
||||
from .util import temp_module
|
||||
|
||||
support.import_module('winreg', required_on=['win'])
|
||||
import_helper.import_module('winreg', required_on=['win'])
|
||||
from winreg import (
|
||||
CreateKey, HKEY_CURRENT_USER,
|
||||
SetValue, REG_SZ, KEY_ALL_ACCESS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue