Skip to content

Commit

Permalink
Bump to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jan 20, 2022
1 parent d0904d6 commit fa61ad5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 68 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CHANGES
=======

1.0.1 (2022-01-20)
------------------

- Don't implicitly switch from legacy to auto asyncio_mode, the integration doesn't work
well.

1.0.0 (2022-1-20)
------------------

Expand Down
4 changes: 2 additions & 2 deletions pytest_aiohttp/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# file generated by setuptools_scm
# don't change, don't track in version control
version = "1.0.0"
version_tuple = (1, 0, 0)
version = "1.0.1.dev2+gd0904d6.d20220120"
version_tuple = (1, 0, 1, "dev2", "gd0904d6.d20220120")
18 changes: 0 additions & 18 deletions pytest_aiohttp/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,6 @@
AiohttpClient = Callable[[Union[Application, BaseTestServer]], Awaitable[TestClient]]


LEGACY_MODE = DeprecationWarning(
"The 'asyncio_mode' is 'legacy', switching to 'auto' for the sake of "
"pytest-aiohttp backward compatibility. "
"Please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' "
"in pytest configuration file."
)


@pytest.mark.tryfirst
def pytest_configure(config) -> None:
val = config.getoption("asyncio_mode")
if val is None:
val = config.getini("asyncio_mode")
if val == "legacy":
config.option.asyncio_mode = "auto"
config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)


@pytest.fixture
def loop(event_loop: asyncio.AbstractEventLoop) -> asyncio.AbstractEventLoop:
warnings.warn(
Expand Down
48 changes: 0 additions & 48 deletions tests/test_switch_mode.py

This file was deleted.

0 comments on commit fa61ad5

Please sign in to comment.