Skip to content

Commit c7255b8

Browse files
authored
ci: fix native namespace test (#2611)
1 parent 53d55c3 commit c7255b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/translate/get_native_namespace_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def _get_expected_namespace(constructor_name: str) -> Any | None: # noqa: PLR09
5656

5757

5858
def test_native_namespace_frame(constructor: Constructor) -> None:
59-
constructor_name = constructor.__name__
60-
if constructor_name == "pyspark_lazy_constructor":
59+
constructor_name = str(constructor)
60+
if "pyspark" in constructor_name and "sqlframe" not in constructor_name:
6161
pytest.skip(reason="Requires special handling for spark local vs spark connect")
6262

6363
expected_namespace = _get_expected_namespace(constructor_name=constructor_name)

0 commit comments

Comments
 (0)