bpo-40275: Remove test helpers aliases in test.support (GH-21771)

This commit is contained in:
Hai Shi 2020-08-08 17:32:41 +08:00 committed by GitHub
parent a4084b9d1e
commit d94af3f7ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 23 deletions

View file

@ -30,6 +30,7 @@ import unittest
import uuid
import warnings
from test import support
from test.support import import_helper
from test.support import os_helper
from test.support import socket_helper
from test.support import threading_helper
@ -2674,8 +2675,8 @@ class Win32JunctionTests(unittest.TestCase):
@unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
class Win32NtTests(unittest.TestCase):
def test_getfinalpathname_handles(self):
nt = support.import_module('nt')
ctypes = support.import_module('ctypes')
nt = import_helper.import_module('nt')
ctypes = import_helper.import_module('ctypes')
import ctypes.wintypes
kernel = ctypes.WinDLL('Kernel32.dll', use_last_error=True)