<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/test/lock_tests.py, branch benjamin-eval-loop-edit</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-32692: Fix test_threading.test_set_and_clear() (GH-8331)</title>
<updated>2018-07-19T08:49:58+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-07-19T08:49:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=81950495ba2c36056e0ce48fd37d514816c26747'/>
<id>81950495ba2c36056e0ce48fd37d514816c26747</id>
<content type='text'>
Increase the timeout: give timeout x 4 instead of timeout x 2 to
threads to wait until the Event is set, but reduce the sleep from 500
ms to 250 ms. So the test should be more reliable and faster!</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Increase the timeout: give timeout x 4 instead of timeout x 2 to
threads to wait until the Event is set, but reduce the sleep from 500
ms to 250 ms. So the test should be more reliable and faster!</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32208: update threading.Semaphore docs and add unit test (#4709)</title>
<updated>2017-12-07T18:04:26+00:00</updated>
<author>
<name>Garrett Berg</name>
<email>googberg@gmail.com</email>
</author>
<published>2017-12-07T18:04:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a0374dd34aa25f0895195d388b5ceff43b121b00'/>
<id>a0374dd34aa25f0895195d388b5ceff43b121b00</id>
<content type='text'>
* fix issue32208: update threading.Semaphore docs and add unit test to validate correct behavior

* add test for blocking

* Update threading.rst

* semaphore: remove documentation validation tests and move 'return value' test to BaseSemaphore
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* fix issue32208: update threading.Semaphore docs and add unit test to validate correct behavior

* add test for blocking

* Update threading.rst

* semaphore: remove documentation validation tests and move 'return value' test to BaseSemaphore
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31234: Add test.support.wait_threads_exit() (#3578)</title>
<updated>2017-09-14T20:07:24+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-09-14T20:07:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ff40ecda73178dfcad24e26240d684356ef20793'/>
<id>ff40ecda73178dfcad24e26240d684356ef20793</id>
<content type='text'>
Use _thread.count() to wait until threads exit. The new context
manager prevents the "dangling thread" warning.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use _thread.count() to wait until threads exit. The new context
manager prevents the "dangling thread" warning.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31234: Try to fix lock_tests warning (#3557)</title>
<updated>2017-09-13T23:41:08+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-09-13T23:41:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=096ae3373abac2c8b3a26a3fe33cc8bd4cbccd4e'/>
<id>096ae3373abac2c8b3a26a3fe33cc8bd4cbccd4e</id>
<content type='text'>
Try to fix the "Warning -- threading_cleanup() failed to cleanup 1
threads" warning in test.lock_tests: wait a little bit longer to give
time to the threads to complete.

Warning seen on test_thread and test_importlib.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Try to fix the "Warning -- threading_cleanup() failed to cleanup 1
threads" warning in test.lock_tests: wait a little bit longer to give
time to the threads to complete.

Warning seen on test_thread and test_importlib.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30727: Fix a race condition in test_threading. (#2334)</title>
<updated>2017-06-23T10:36:36+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-06-23T10:36:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=32cb968a2edd482891c33b6f2ebae10f1d305424'/>
<id>32cb968a2edd482891c33b6f2ebae10f1d305424</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #25551: Test condition behavior instead of its internals</title>
<updated>2016-04-29T14:25:51+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2016-04-29T14:25:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=dd745cc3ff853fd5b641c035a860f0ac84f2b401'/>
<id>dd745cc3ff853fd5b641c035a860f0ac84f2b401</id>
<content type='text'>
test_reset_internal_locks was looking at Event's _cond._lock. This
makes it harder to change internals of the Condition object and
makes the test fragile.

The test was added by Nir Soffer in 6108d30dde21.

Patch by Nir Soffer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test_reset_internal_locks was looking at Event's _cond._lock. This
makes it harder to change internals of the Condition object and
makes the test fragile.

The test was added by Nir Soffer in 6108d30dde21.

Patch by Nir Soffer.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #25551: Test condition behavior instead of its internals</title>
<updated>2016-04-29T14:25:29+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2016-04-29T14:25:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=6d34bbbfc7ac1a5a8d518ed1b767239de26650c5'/>
<id>6d34bbbfc7ac1a5a8d518ed1b767239de26650c5</id>
<content type='text'>
test_reset_internal_locks was looking at Event's _cond._lock. This
makes it harder to change internals of the Condition object and
makes the test fragile.

The test was added by Nir Soffer in 6108d30dde21.

Patch by Nir Soffer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test_reset_internal_locks was looking at Event's _cond._lock. This
makes it harder to change internals of the Condition object and
makes the test fragile.

The test was added by Nir Soffer in 6108d30dde21.

Patch by Nir Soffer.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #25298:  Add lock and rlock weakref tests (Contributed by Nir Soffer).</title>
<updated>2015-10-09T04:03:51+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2015-10-09T04:03:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7836a27ceba2395572f1b3b385c11e6a43910185'/>
<id>7836a27ceba2395572f1b3b385c11e6a43910185</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>merge 3.4 (#25319)</title>
<updated>2015-10-06T05:00:33+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2015-10-06T05:00:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=72181b2f5385cc709543250b37d077adf3d08043'/>
<id>72181b2f5385cc709543250b37d077adf3d08043</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>reinitialize an Event's Condition with a regular lock (closes #25319)</title>
<updated>2015-10-06T04:56:22+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2015-10-06T04:56:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=15982aad2b09086b5d8819ed5dfb0ec6195fd41a'/>
<id>15982aad2b09086b5d8819ed5dfb0ec6195fd41a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
