Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7270] Tests for synchronization primitives

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 6, 2009, 3:26 AM

Post #1 of 9 (323 views)
Permalink
[issue7270] Tests for synchronization primitives

New submission from Antoine Pitrou <pitrou [at] free>:

Here is a patch adding unit tests for synchronization primitives in
threading.py (Lock, RLock, Event, Condition). I've left Semaphore and
BoundedSemaphore out of the picture.

----------
components: Library (Lib), Tests
files: locktests.patch
keywords: patch
messages: 94966
nosy: gregory.p.smith, jyasskin, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Tests for synchronization primitives
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file15274/locktests.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 6, 2009, 3:44 AM

Post #2 of 9 (313 views)
Permalink
[issue7270] Tests for synchronization primitives [In reply to]

Changes by Antoine Pitrou <pitrou [at] free>:


----------
nosy: +tim_one

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 6, 2009, 5:29 AM

Post #3 of 9 (311 views)
Permalink
[issue7270] Tests for synchronization primitives [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

New patch adding Semaphore and BoundedSemaphore tests.

----------
Added file: http://bugs.python.org/file15275/locktests2.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 6, 2009, 6:44 AM

Post #4 of 9 (315 views)
Permalink
[issue7270] Tests for synchronization primitives [In reply to]

Changes by Antoine Pitrou <pitrou [at] free>:


Removed file: http://bugs.python.org/file15274/locktests.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 6, 2009, 6:44 AM

Post #5 of 9 (304 views)
Permalink
[issue7270] Tests for synchronization primitives [In reply to]

Changes by Antoine Pitrou <pitrou [at] free>:


Removed file: http://bugs.python.org/file15275/locktests2.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 6, 2009, 6:44 AM

Post #6 of 9 (311 views)
Permalink
[issue7270] Tests for synchronization primitives [In reply to]

Changes by Antoine Pitrou <pitrou [at] free>:


Added file: http://bugs.python.org/file15277/locktests2.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 6, 2009, 10:26 AM

Post #7 of 9 (312 views)
Permalink
[issue7270] Tests for synchronization primitives [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

Please make a sign if you want to review, otherwise I will commit.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 6, 2009, 1:08 PM

Post #8 of 9 (305 views)
Permalink
[issue7270] Tests for synchronization primitives [In reply to]

Gregory P. Smith <greg [at] krypto> added the comment:

Can you have Bunch inherit from object and add a docstring to its
constructor?

otherwise looks good, commit when you're ready.

----------
assignee: -> pitrou

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 6, 2009, 2:41 PM

Post #9 of 9 (310 views)
Permalink
[issue7270] Tests for synchronization primitives [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

Ok, I committed the patch in trunk and py3k after applying the suggested
fixes. Thank you.

----------
resolution: -> fixed
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.