diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-08-08 17:32:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-08 11:32:41 +0200 |
commit | d94af3f7ed98e6bfb4bf5f918f464b5e23d3ed1b (patch) | |
tree | fcd219f3484eca8caade4aaa68a1d5fd66218e3c /Lib/test/test_os.py | |
parent | a4084b9d1e40c1c9259372263d1fe8c8a562b093 (diff) | |
download | cpython-git-d94af3f7ed98e6bfb4bf5f918f464b5e23d3ed1b.tar.gz |
bpo-40275: Remove test helpers aliases in test.support (GH-21771)
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 03152072c1..5126c84cf3 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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) |