Skip to content

Commit b002708

Browse files
authored
TEST-#7681: Interop Tests should all use Backend.get instead of "Ray" (#7680)
Missed a line in create_test_series_in_defined_mode where we want to get the default Backend instead of "Ray" <!-- Thank you for your contribution! Please review the contributing docs: https://modin.readthedocs.io/en/latest/development/contributing.html if you have questions about contributing. --> ## What do these changes do? <!-- Please give a short brief about these changes. --> - [x] first commit message and PR title follow format outlined [here](https://modin.readthedocs.io/en/latest/development/contributing.html#commit-message-formatting) > **_NOTE:_** If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title. - [x] passes `flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py` - [x] passes `black --check modin/ asv_bench/benchmarks scripts/doc_checker.py` - [x] signed commit with `git commit -s` <!-- you can amend your commit with a signature via `git commit -amend -s` --> - [x] Resolves #7681 - [x] tests added and passing (NA) - [x] module layout described at `docs/development/architecture.rst` is up-to-date <!-- if you have added, renamed or removed files or directories please update the documentation accordingly -->
1 parent 43d0b94 commit b002708

File tree

1 file changed

+4
-1
lines changed
  • modin/tests/pandas/native_df_interoperability

1 file changed

+4
-1
lines changed

modin/tests/pandas/native_df_interoperability/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def create_test_df_in_defined_mode(
4545

4646
if not isinstance(native, bool):
4747
raise ValueError("`native` should be True or False.")
48+
49+
# Use the default backend unless native
4850
hybrid_backend = "Pandas" if native else Backend.get()
4951
with switch_to_native_execution() if native else nullcontext():
5052
with config_context(AutoSwitchBackend=False, Backend=hybrid_backend):
@@ -62,7 +64,8 @@ def create_test_series_in_defined_mode(
6264
if not isinstance(native, bool):
6365
raise ValueError("`native` should be True or False.")
6466

65-
hybrid_backend = "Pandas" if native else "Ray"
67+
# Use the default backend unless native
68+
hybrid_backend = "Pandas" if native else Backend.get()
6669
with switch_to_native_execution() if native else nullcontext():
6770
with config_context(AutoSwitchBackend=False, Backend=hybrid_backend):
6871
modin_ser, pandas_ser = create_test_series(

0 commit comments

Comments
 (0)