Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ replacements:
"google-cloud-testutils",
]
SYSTEM_TEST_EXTERNAL_DEPENDENCIES: List[str] = [
"pytest-asyncio==0.21.2",
"pytest-asyncio>=0.26.0",
"pytest-order==1.3.0",
RUFF_VERSION,
"pyyaml==6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-bigtable/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"google-cloud-testutils",
]
SYSTEM_TEST_EXTERNAL_DEPENDENCIES: List[str] = [
"pytest-asyncio==0.21.2",
"pytest-asyncio>=0.26.0",
"pytest-order==1.3.0",
RUFF_VERSION,
"pyyaml==6.0.2",
Expand Down
11 changes: 0 additions & 11 deletions packages/google-cloud-bigtable/tests/system/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,8 @@
Import pytest fixtures for setting up table for data client system tests
"""

import asyncio
import os
import sys

import pytest

script_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(script_path)


@pytest.fixture(scope="session")
def event_loop():
loop = asyncio.new_event_loop()
yield loop
loop.stop()
loop.close()
8 changes: 8 additions & 0 deletions packages/google-cloud-bigtable/tests/system/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[pytest]
# The data client system tests share a single client across the whole session
# (see the session-scoped `client`/`target`/`table` fixtures), so every async
# fixture and test must run on the same event loop. Run them all on a single
# session-scoped loop, matching the previous session-scoped `event_loop`
# override that pytest-asyncio removed in 1.0.
asyncio_default_test_loop_scope = session
asyncio_default_fixture_loop_scope = session
Comment thread
daniel-sanche marked this conversation as resolved.
Resolved
Loading