| 1 |
# Uses `from x import y as y` for compatibility with `pyright --verifytypes` (#2625) |
| 2 |
|
| 3 |
from .. import _deprecate as _deprecate |
| 4 |
from .._core import ( |
| 5 |
MockClock as MockClock, |
| 6 |
wait_all_tasks_blocked as wait_all_tasks_blocked, |
| 7 |
) |
| 8 |
from .._threads import ( |
| 9 |
active_thread_count as active_thread_count, |
| 10 |
wait_all_threads_completed as wait_all_threads_completed, |
| 11 |
) |
| 12 |
from .._util import fixup_module_metadata |
| 13 |
from ._check_streams import ( |
| 14 |
check_half_closeable_stream as check_half_closeable_stream, |
| 15 |
check_one_way_stream as check_one_way_stream, |
| 16 |
check_two_way_stream as check_two_way_stream, |
| 17 |
) |
| 18 |
from ._checkpoints import ( |
| 19 |
assert_checkpoints as assert_checkpoints, |
| 20 |
assert_no_checkpoints as assert_no_checkpoints, |
| 21 |
) |
| 22 |
from ._memory_streams import ( |
| 23 |
MemoryReceiveStream as MemoryReceiveStream, |
| 24 |
MemorySendStream as MemorySendStream, |
| 25 |
lockstep_stream_one_way_pair as lockstep_stream_one_way_pair, |
| 26 |
lockstep_stream_pair as lockstep_stream_pair, |
| 27 |
memory_stream_one_way_pair as memory_stream_one_way_pair, |
| 28 |
memory_stream_pair as memory_stream_pair, |
| 29 |
memory_stream_pump as memory_stream_pump, |
| 30 |
) |
| 31 |
from ._network import open_stream_to_socket_listener as open_stream_to_socket_listener |
| 32 |
from ._raises_group import Matcher as _Matcher, RaisesGroup as _RaisesGroup |
| 33 |
from ._sequencer import Sequencer as Sequencer |
| 34 |
from ._trio_test import trio_test as trio_test |
| 35 |
|
| 36 |
################################################################ |
| 37 |
|
| 38 |
|
| 39 |
_deprecate.deprecate_attributes( |
| 40 |
__name__, |
| 41 |
{ |
| 42 |
"RaisesGroup": _deprecate.DeprecatedAttribute( |
| 43 |
_RaisesGroup, |
| 44 |
version="0.33.0", |
| 45 |
issue=3326, |
| 46 |
instead="See https://docs.pytest.org/en/stable/reference/reference.html#pytest.RaisesGroup", |
| 47 |
), |
| 48 |
"Matcher": _deprecate.DeprecatedAttribute( |
| 49 |
_Matcher, |
| 50 |
version="0.33.0", |
| 51 |
issue=3326, |
| 52 |
instead="See https://docs.pytest.org/en/stable/reference/reference.html#pytest.RaisesExc", |
| 53 |
), |
| 54 |
}, |
| 55 |
) |
| 56 |
|
| 57 |
fixup_module_metadata(__name__, globals()) |
| 58 |
del fixup_module_metadata |