Skip to content
Merged
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
16 changes: 10 additions & 6 deletions cubed/tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import platform
import warnings
from collections import Counter
from typing import Iterable

Expand Down Expand Up @@ -36,12 +37,15 @@
MAIN_EXECUTORS.append(create_executor("processes"))

try:
ALL_EXECUTORS.append(
create_executor("beam", executor_options=dict(runner="FnApiRunner"))
)
MAIN_EXECUTORS.append(
create_executor("beam", executor_options=dict(runner="FnApiRunner"))
)
with warnings.catch_warnings():
# workaround for problem reported in https://github.com/apache/beam/pull/37034
warnings.filterwarnings("ignore", category=DeprecationWarning)
ALL_EXECUTORS.append(
create_executor("beam", executor_options=dict(runner="FnApiRunner"))
)
MAIN_EXECUTORS.append(
create_executor("beam", executor_options=dict(runner="FnApiRunner"))
)
except ImportError:
pass

Expand Down