Skip to content

Commit fa61ad5

Browse files
committed
Bump to 1.0.1
1 parent d0904d6 commit fa61ad5

File tree

4 files changed

+8
-68
lines changed

4 files changed

+8
-68
lines changed

CHANGES.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGES
22
=======
33

4+
1.0.1 (2022-01-20)
5+
------------------
6+
7+
- Don't implicitly switch from legacy to auto asyncio_mode, the integration doesn't work
8+
well.
9+
410
1.0.0 (2022-1-20)
511
------------------
612

pytest_aiohttp/_version.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# file generated by setuptools_scm
22
# don't change, don't track in version control
3-
version = "1.0.0"
4-
version_tuple = (1, 0, 0)
3+
version = "1.0.1.dev2+gd0904d6.d20220120"
4+
version_tuple = (1, 0, 1, "dev2", "gd0904d6.d20220120")

pytest_aiohttp/plugin.py

-18
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,6 @@
1010
AiohttpClient = Callable[[Union[Application, BaseTestServer]], Awaitable[TestClient]]
1111

1212

13-
LEGACY_MODE = DeprecationWarning(
14-
"The 'asyncio_mode' is 'legacy', switching to 'auto' for the sake of "
15-
"pytest-aiohttp backward compatibility. "
16-
"Please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' "
17-
"in pytest configuration file."
18-
)
19-
20-
21-
@pytest.mark.tryfirst
22-
def pytest_configure(config) -> None:
23-
val = config.getoption("asyncio_mode")
24-
if val is None:
25-
val = config.getini("asyncio_mode")
26-
if val == "legacy":
27-
config.option.asyncio_mode = "auto"
28-
config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)
29-
30-
3113
@pytest.fixture
3214
def loop(event_loop: asyncio.AbstractEventLoop) -> asyncio.AbstractEventLoop:
3315
warnings.warn(

tests/test_switch_mode.py

-48
This file was deleted.

0 commit comments

Comments
 (0)