diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-08-07 15:18:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 15:18:38 (GMT) |
commit | 598a951844122678de2596dbc1e0e09e2be65fd2 (patch) | |
tree | 23e7f7765fd015e838382e443f39269a2745fbc4 /Lib/ctypes/test | |
parent | 46e19b61d31ba99f049258efa4ff1334856a3643 (diff) | |
download | cpython-598a951844122678de2596dbc1e0e09e2be65fd2.zip cpython-598a951844122678de2596dbc1e0e09e2be65fd2.tar.gz cpython-598a951844122678de2596dbc1e0e09e2be65fd2.tar.bz2 |
bpo-40275: Use new test.support helper submodules in tests (GH-21764)
Diffstat (limited to 'Lib/ctypes/test')
-rw-r--r-- | Lib/ctypes/test/test_loading.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_loading.py b/Lib/ctypes/test/test_loading.py index ba655bc..38b45f9 100644 --- a/Lib/ctypes/test/test_loading.py +++ b/Lib/ctypes/test/test_loading.py @@ -5,6 +5,7 @@ import subprocess import sys import unittest import test.support +from test.support import import_helper from ctypes.util import find_library libc_name = None @@ -117,7 +118,7 @@ class LoaderTest(unittest.TestCase): @unittest.skipUnless(os.name == "nt", 'test specific to Windows') def test_load_dll_with_flags(self): - _sqlite3 = test.support.import_module("_sqlite3") + _sqlite3 = import_helper.import_module("_sqlite3") src = _sqlite3.__file__ if src.lower().endswith("_d.pyd"): ext = "_d.dll" |