summaryrefslogtreecommitdiff
path: root/tests/test_locks.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge Tulip into TrolliusVictor Stinner2014-07-291-1/+4
|\
| * test_locks: close the temporary event loop and check the condition lockVictor Stinner2014-07-291-1/+4
| |
* | Merge Tulip into TrolliusVictor Stinner2014-07-291-79/+86
|\ \ | |/ |/|
| * Merge Tulip into TrolliusVictor Stinner2014-06-271-79/+86
| |\
| | * Merge with TulipVictor Stinner2014-06-181-44/+16
| | |\
| | * | Replace asyncio with trolliusVictor Stinner2014-05-201-4/+4
| | | |
| | * | replace 'yield' with 'yield From'Victor Stinner2014-02-261-1/+1
| | | |
| | * | Use "yield From(...)" syntax; set version to 0.2Victor Stinner2014-02-251-40/+40
| | | |
| | * | Merge Tulip into TrolliusVictor Stinner2014-02-201-90/+97
| | |\ \
| | | * \ Merge with TulipVictor Stinner2014-01-271-87/+94
| | | |\ \ | | |/ / / | | | | | | | | | | Add time_monotonic.time_monotonic_resolution
| | | * | On Python 3.3+, use unittest.mock instead of mockVictor Stinner2014-01-101-1/+1
| | | | |
| | | * | Fix warnings (unclosed socket) in test_events: run the loop a little bit longerVictor Stinner2014-01-091-32/+16
| | | | |
| | | * | Fixed required loop iterations in test_locks.schlamar2014-01-081-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On tulip, calling `acquire` on lock objects does not give up control to the event loop if the lock is currently released because it exits the coroutine directly with `return`. On trollius, we always give up control to the loop because `return` is not available. So to process the `raise Return` statements correctly we need one additional event loop iteration for every return in a coroutine to achieve the same results as in tulip. The calling order in `EventTests.test_wait` is slightly different than in tulip ([1, 2, 3] vs. [3, 1, 2]) due to this behavior.
| | | * | Experimental Python 3.2 supportVictor Stinner2014-01-081-4/+4
| | | | |
| | | * | Some fixes for test_locks.schlamar2014-01-071-15/+23
| | | | |
| | | * | Reimplement missing unittest.TestCase methodsVictor Stinner2014-01-071-4/+4
| | | | |
| | | * | export executor errors and constants in asyncio.futures and asyncio.tasks toVictor Stinner2014-01-061-4/+5
| | | | | | | | | | | | | | | | | | | | help compatibility with Tulip.
| | | * | Implement a synchrounous executor when concurrent.futures is missingVictor Stinner2014-01-051-4/+4
| | | | |
| | | * | Copy asyncio tests from previous tulip_py2 projectVictor Stinner2014-01-031-64/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Replace unittest.mock with mock * Replace "yield from future" with "yield future" and "return value" with "raise Return(value)" in coroutines, the new "yield from" (PEP 380) was introduced in Python 3.3 * Classes inherit explicitly from object to use new-style class * Replace nonlocal keyword with an non_local dictionary * transport.write() raises a TypeError on u'unicode', not on 'str' * Remove useless "yield from []" in coroutine (incompatible with Python 2)
* | | | | Accept optional lock object in Condition ctor (#198)Andrew Svetlov2014-07-261-0/+12
|/ / / /
* | | | Python issue 21163: Fix some "Task was destroyed but it is pending!" logs in ↵Victor Stinner2014-06-251-0/+1
| |_|/ |/| | | | | | | | tests
* | | Refactor tests: add a base TestCase classVictor Stinner2014-06-181-48/+20
| | |
* | | Replace "unittest.mock" with "mock" in unit testsVictor Stinner2014-02-261-10/+10
|/ / | | | | | | | | Use "from unittest import mock". It should simplify my work to merge new tests in Trollius, because Trollius uses "mock" backport for Python 2.
* | Locks refactor: use a separate context manager; remove Semaphore._locked.Guido van Rossum2014-01-251-0/+35
| |
* | Unit tests use the main asyncio module instead of submodules like eventsVictor Stinner2014-01-241-123/+120
|/
* Change bounded semaphore into a subclass, like threading.[Bounded]Semaphore.Guido van Rossum2013-11-231-1/+1
|
* Allow and correctly implement Semaphore(0).Guido van Rossum2013-11-211-0/+4
|
* Locks improvements by Arnaud Faure: better repr(), change Condition structure.Guido van Rossum2013-11-031-1/+70
|
* Rename tests from foo_test.py to test_foo.py, to match stdlib preference.Guido van Rossum2013-10-141-0/+765