Skip to content

Commit

Permalink
[SPARK-47454][PYTHON][TESTS][FOLLOWUP] Skip `test_create_dataframe_fr…
Browse files Browse the repository at this point in the history
…om_pandas_with_day_time_interval` if pandas is not avaiable

### What changes were proposed in this pull request?

This is a follow-up of apache#45591 to skip `test_create_dataframe_from_pandas_with_day_time_interval` if `pandas` is not available.

### Why are the changes needed?

The test requires `pandas` due to `import pandas as pd`.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs and manual test.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#45828 from dongjoon-hyun/SPARK-47454.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
  • Loading branch information
dongjoon-hyun committed Apr 3, 2024
1 parent 2c2a2ad commit 344f640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/tests/test_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_create_dataframe_from_pandas_with_dst(self):

# TODO(SPARK-43354): Re-enable test_create_dataframe_from_pandas_with_day_time_interval
@unittest.skipIf(
"pypy" in platform.python_implementation().lower(),
"pypy" in platform.python_implementation().lower() or not have_pandas,
"Fails in PyPy Python 3.8, should enable.",
)
def test_create_dataframe_from_pandas_with_day_time_interval(self):
Expand Down

0 comments on commit 344f640

Please sign in to comment.