Author: mattip <[email protected]>
Branch:
Changeset: r57250:eb6dd7d99612
Date: 2012-09-08 23:41 +0300
http://bitbucket.org/pypy/pypy/changeset/eb6dd7d99612/
Log: TerminateProcess succeeds with non-zero return value, how did the
test ever pass?
diff --git a/pypy/rlib/test/test_rwin32.py b/pypy/rlib/test/test_rwin32.py
--- a/pypy/rlib/test/test_rwin32.py
+++ b/pypy/rlib/test/test_rwin32.py
@@ -43,7 +43,7 @@
)
print proc.pid
handle = rwin32.OpenProcess(rwin32.PROCESS_ALL_ACCESS, False, proc.pid)
- assert rwin32.TerminateProcess(handle, signal.SIGTERM) == 0
+ assert rwin32.TerminateProcess(handle, signal.SIGTERM) == 1
rwin32.CloseHandle(handle)
assert proc.wait() == signal.SIGTERM
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit