Author: Mark Young <[email protected]>
Branch: py3k
Changeset: r85808:b680f1746a91
Date: 2016-07-17 15:15 -0400
http://bitbucket.org/pypy/pypy/changeset/b680f1746a91/
Log: Add more more check.
diff --git a/pypy/module/time/interp_time.py b/pypy/module/time/interp_time.py
--- a/pypy/module/time/interp_time.py
+++ b/pypy/module/time/interp_time.py
@@ -970,8 +970,11 @@
lltype.scoped_alloc(rwin32.FILETIME) as exit_time, \
lltype.scoped_alloc(rwin32.FILETIME) as kernel_time, \
lltype.scoped_alloc(rwin32.FILETIME) as user_time:
- GetProcessTimes(current_process, creation_time, exit_time,
- kernel_time, user_time)
+ worked = GetProcessTimes(current_process, creation_time, exit_time,
+ kernel_time, user_time)
+ if not worked:
+ raise wrap_windowserror(space,
+ rwin32.lastSavedWindowsError("GetProcessTimes"))
kernel_time2 = (kernel_time.c_dwLowDateTime |
r_ulonglong(kernel_time.c_dwHighDateTime) << 32)
user_time2 = (user_time.c_dwLowDateTime |
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit