Skip to content

Commit

Permalink
Revert nest-asyncio (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson authored May 1, 2023
1 parent 075fdc5 commit c7a0146
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
4 changes: 0 additions & 4 deletions kr8s/_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
import inspect
from typing import Any, AsyncGenerator, Callable, Generator, Tuple

import nest_asyncio

nest_asyncio.apply()


def _get_event_loop() -> asyncio.AbstractEventLoop:
try:
Expand Down
1 change: 1 addition & 0 deletions kr8s/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def test_version_sync():
assert "major" in version


@pytest.mark.xfail(reason="Cannot run nested event loops", raises=RuntimeError)
async def test_version_sync_in_async():
kubernetes = kr8s.api()
version = kubernetes.version()
Expand Down
14 changes: 1 addition & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ python = "^3.8"
aiohttp = "^3.8.4"
pyyaml = "^6.0"
asyncio-atexit = "^1.0.1"
nest-asyncio = "^1.5.6"


[tool.poetry.group.test.dependencies]
Expand Down

0 comments on commit c7a0146

Please sign in to comment.