]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #25551: Test condition behavior instead of its internals
authorBerker Peksag <berker.peksag@gmail.com>
Fri, 29 Apr 2016 14:25:51 +0000 (17:25 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Fri, 29 Apr 2016 14:25:51 +0000 (17:25 +0300)
commitdd745cc3ff853fd5b641c035a860f0ac84f2b401
tree62b672ca0fccdc99cf59370bc1468c768a7adaee
parent0ac70c0e9052db0c8ca6da517019c9c8f3f5d30d
parent6d34bbbfc7ac1a5a8d518ed1b767239de26650c5
Issue #25551: Test condition behavior instead of its internals

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.
Lib/test/lock_tests.py