]> granicus.if.org Git - python/commit
asyncio: Replace "unittest.mock" with "mock" in unit tests
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 26 Feb 2014 09:25:02 +0000 (10:25 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 26 Feb 2014 09:25:02 +0000 (10:25 +0100)
commit24ba2035048566df2e0876fb719749d984234bc7
treed7e3aea3b21b945a2f475247384878ca7723a415
parent71ec82a501d95c43aa6c3559e8dbd05aad23eb50
asyncio: Replace "unittest.mock" with "mock" in unit tests

Use "from unittest import mock". It should simplify my work to merge new tests
in Trollius, because Trollius uses "mock" backport for Python 2.
12 files changed:
Lib/asyncio/test_utils.py
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_futures.py
Lib/test/test_asyncio/test_locks.py
Lib/test/test_asyncio/test_proactor_events.py
Lib/test/test_asyncio/test_queues.py
Lib/test/test_asyncio/test_selector_events.py
Lib/test/test_asyncio/test_streams.py
Lib/test/test_asyncio/test_transports.py
Lib/test/test_asyncio/test_unix_events.py
Lib/test/test_asyncio/test_windows_utils.py