We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7dc5ed commit c2081f3Copy full SHA for c2081f3
tests/test_windows.py
@@ -138,7 +138,7 @@ def kill_pid_3(
138
if check_pid(pid) is False:
139
return False
140
except OSError as e:
141
- if 87 == e.errno: # ERROR_INVALID_PARAMETER (no such process)
+ if 87 == e.winerror: # ERROR_INVALID_PARAMETER (no such process)
142
143
raise
144
return True
@@ -196,7 +196,7 @@ def test_kill_pid(self):
196
self.assertFalse(check_pid(victim_proc.pid), f"check_pid {victim_proc.pid}")
197
198
# Test killing non-existent process
199
- self.assertFalse(kill_pid(999999), f"kill_pid {victim_proc.pid}")
+ self.assertFalse(kill_pid(999999), f"kill_pid {999999}")
200
201
def test_kill_already_dead(self):
202
"""Test killing a process that just exited"""
0 commit comments