diff --git a/testing/tests/api/externing.py b/testing/tests/api/externing.py index 125c80b70..b3ccdcb9d 100644 --- a/testing/tests/api/externing.py +++ b/testing/tests/api/externing.py @@ -11,6 +11,7 @@ def testCdLsPwd(self): with testing.mkdtemp() as path: cmd.cd(path) if sys.platform == 'win32': + import ctypes def get_long_path_name(path): buf = ctypes.create_unicode_buffer(260) ctypes.windll.kernel32.GetLongPathNameW(path, buf, len(buf))