summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2024-09-23 22:19:35 (GMT)
committerGitHub <noreply@github.com>2024-09-23 22:19:35 (GMT)
commit8a2baedc4bcb606da937e4e066b4b3a18961cace (patch)
tree06e45d632655099faa09aa5719d51b595d86513b /Lib/test/test_os.py
parent0060486862bfa8e6583beb627be154daaaaa9e2a (diff)
downloadcpython-8a2baedc4bcb606da937e4e066b4b3a18961cace.zip
cpython-8a2baedc4bcb606da937e4e066b4b3a18961cace.tar.gz
cpython-8a2baedc4bcb606da937e4e066b4b3a18961cace.tar.bz2
Bump Ruff to 0.6.7 (#124384)
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 9fa4e40..307f0f1 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -3177,7 +3177,8 @@ class Win32NtTests(unittest.TestCase):
def test_getfinalpathname_handles(self):
nt = import_helper.import_module('nt')
ctypes = import_helper.import_module('ctypes')
- import ctypes.wintypes
+ # Ruff false positive -- it thinks we're redefining `ctypes` here
+ import ctypes.wintypes # noqa: F811
kernel = ctypes.WinDLL('Kernel32.dll', use_last_error=True)
kernel.GetCurrentProcess.restype = ctypes.wintypes.HANDLE