Serhiy Storchaka added the comment:

The repr of threading._RLock contains owner and count, but not lock/unlock 
status. The repr of locks from _dummy_thread also should contain lock/unlock 
status. And it would be nice to have the open/closed status in the repr of 
other synchronization primitives: Condition, Semaphore, etc. 

As for tests, I think assertRegex() will produce more useful error report.

----------
nosy: +serhiy.storchaka
stage:  -> patch review

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21137>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to