diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-01 23:00:22 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-01 23:00:22 +0200 |
commit | 9dc893c954b626685fc5bb12a040e22a41a8958d (patch) | |
tree | c42918d40b287e76ae260b4c402ce62ed813087d /Python/condvar.h | |
parent | d71dc179c59f0a6e74087ecea134164f0e184ee8 (diff) | |
parent | 691afb4d9f2a095f89c6e4011807a185fa661bb7 (diff) | |
download | cpython-9dc893c954b626685fc5bb12a040e22a41a8958d.tar.gz |
Issue #18339: use with self.assertRaises() to make test case more readable
Diffstat (limited to 'Python/condvar.h')
-rw-r--r-- | Python/condvar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/condvar.h b/Python/condvar.h index bbb40ba18e..e022dc7938 100644 --- a/Python/condvar.h +++ b/Python/condvar.h @@ -241,7 +241,7 @@ _PyCOND_WAIT_MS(PyCOND_T *cv, PyMUTEX_T *cs, DWORD ms) * but we are safe because we are using a semaphore wich has an internal * count. */ - wait = WaitForSingleObject(cv->sem, ms); + wait = WaitForSingleObjectEx(cv->sem, ms, FALSE); PyMUTEX_LOCK(cs); if (wait != WAIT_OBJECT_0) --cv->waiting; |