mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-20849)
This commit is contained in:
parent
5f190d2cc6
commit
f7ba40b505
17 changed files with 78 additions and 60 deletions
|
@ -4,11 +4,12 @@
|
|||
import os, sys, errno
|
||||
import unittest
|
||||
from test import support
|
||||
from test.support import import_helper
|
||||
import threading
|
||||
from platform import machine, win32_edition
|
||||
|
||||
# Do this first so test will be skipped if module doesn't exist
|
||||
support.import_module('winreg', required_on=['win'])
|
||||
import_helper.import_module('winreg', required_on=['win'])
|
||||
# Now import everything
|
||||
from winreg import *
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue