Skip to content

Commit a31471c

Browse files
committed
changing the code to be compatible with python 3.8
1 parent fcd6710 commit a31471c

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

tests/integration/conftest.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -574,11 +574,9 @@ def fixture_registry_async_client_custom_config(
574574
) -> Callable[[ConfigDefaults], AsyncContextManager[Client]]:
575575
@asynccontextmanager
576576
async def client_from_custom_config(config: ConfigDefaults) -> Client:
577-
async with (
578-
registry_cluster_from_custom_config(config) as registry_description,
579-
_registry_async_client(request, registry_description, loop) as client,
580-
):
581-
yield client
577+
async with registry_cluster_from_custom_config(config) as registry_description:
578+
async with _registry_async_client(request, registry_description, loop) as client:
579+
yield client
582580

583581
return client_from_custom_config
584582

tests/integration/utils/cluster.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,14 @@ async def start_schema_registry_cluster(
7777
log_path = group_dir / f"{pos}.log"
7878
error_path = group_dir / f"{pos}.error"
7979

80-
config = set_config_defaults(config) if custom_values is None else set_config_defaults(config) | custom_values
80+
config = (
81+
set_config_defaults(config)
82+
if custom_values is None
83+
else {
84+
**dict(item for item in set_config_defaults(config).items() if item[0] not in custom_values),
85+
**custom_values,
86+
}
87+
)
8188
write_config(config_path, config)
8289

8390
logfile = stack.enter_context(open(log_path, "w"))

0 commit comments

Comments
 (0)