You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add unused port helpers for UDP
Extends the unused_tcp_port and unused_tcp_port_factory mechanisms for
UDP ports.
* Update pytest_asyncio/plugin.py
* Add changenote
Co-authored-by: Andrew Svetlov <[email protected]>
Work just like their TCP counterparts but return unused UDP ports.
115
+
116
+
112
117
Async fixtures
113
118
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114
119
Asynchronous fixtures are defined just like ordinary pytest fixtures, except they should be coroutines or asynchronous generators.
@@ -166,7 +171,7 @@ Note about unittest
166
171
-------------------
167
172
168
173
Test classes subclassing the standard `unittest <https://docs.python.org/3/library/unittest.html>`__ library are not supported, users
169
-
are recommended to use `unitest.IsolatedAsyncioTestCase <https://docs.python.org/3/library/unittest.html#unittest.IsolatedAsyncioTestCase>`__
174
+
are recommended to use `unitest.IsolatedAsyncioTestCase <https://docs.python.org/3/library/unittest.html#unittest.IsolatedAsyncioTestCase>`__
170
175
or an async framework such as `asynctest <https://asynctest.readthedocs.io/en/latest>`__.
171
176
172
177
Changelog
@@ -177,6 +182,7 @@ Changelog
177
182
- Drop support for Python 3.6
178
183
- Fixed an issue when pytest-asyncio was used in combination with `flaky` or inherited asynchronous Hypothesis tests. `#178 <https://github.com/pytest-dev/pytest-asyncio/issues/178>`_ `#231 <https://github.com/pytest-dev/pytest-asyncio/issues/231>`_
179
184
- Added `flaky <https://pypi.org/project/flaky/>`_ to test dependencies
185
+
- Added ``unused_udp_port`` and ``unused_udp_port_factory`` fixtures (similar to ``unused_tcp_port`` and ``unused_tcp_port_factory`` counterparts. `#99 <https://github.com/pytest-dev/pytest-asyncio/issues/99>`_
0 commit comments