diff --git a/python/python/tests/docs/test_search.py b/python/python/tests/docs/test_search.py index f34dfd9b7..4e91670c7 100644 --- a/python/python/tests/docs/test_search.py +++ b/python/python/tests/docs/test_search.py @@ -156,9 +156,6 @@ async def test_vector_search_async(): # --8<-- [end:search_result_async_as_list] -@pytest.mark.skipif( - os.name == "nt", reason="Need to fix https://github.com/lancedb/lance/issues/3905" -) def test_fts_fuzzy_query(): uri = "data/fuzzy-example" db = lancedb.connect(uri) @@ -201,9 +198,6 @@ def test_fts_fuzzy_query(): } -@pytest.mark.skipif( - os.name == "nt", reason="Need to fix https://github.com/lancedb/lance/issues/3905" -) def test_fts_boost_query(): uri = "data/boost-example" db = lancedb.connect(uri) @@ -249,9 +243,6 @@ def test_fts_boost_query(): ) -@pytest.mark.skipif( - os.name == "nt", reason="Need to fix https://github.com/lancedb/lance/issues/3905" -) def test_fts_boolean_query(tmp_path): uri = tmp_path / "boolean-example" db = lancedb.connect(uri) @@ -303,9 +294,6 @@ def test_fts_boolean_query(tmp_path): } -@pytest.mark.skipif( - os.name == "nt", reason="Need to fix https://github.com/lancedb/lance/issues/3905" -) def test_fts_native(): # --8<-- [start:basic_fts] uri = "data/sample-lancedb" @@ -351,9 +339,6 @@ def test_fts_native(): # --8<-- [end:fts_incremental_index] -@pytest.mark.skipif( - os.name == "nt", reason="Need to fix https://github.com/lancedb/lance/issues/3905" -) @pytest.mark.asyncio async def test_fts_native_async(): # --8<-- [start:basic_fts_async] diff --git a/python/python/tests/test_db.py b/python/python/tests/test_db.py index 09ee719db..e2bd20547 100644 --- a/python/python/tests/test_db.py +++ b/python/python/tests/test_db.py @@ -7,7 +7,6 @@ import contextlib import inspect import pickle import re -import sys from datetime import timedelta from importlib import resources import os @@ -1482,7 +1481,6 @@ def test_clone_table_deep_clone_fails(tmp_path): db.clone_table("cloned", source_uri, is_shallow=False) -@pytest.mark.skipif(sys.platform == "win32", reason="Namespace client issues") def test_namespace_client_native_storage(tmp_path): """Test namespace_client() returns DirectoryNamespace for native storage.""" from lance.namespace import DirectoryNamespace @@ -1491,10 +1489,11 @@ def test_namespace_client_native_storage(tmp_path): ns_client = db.namespace_client() assert isinstance(ns_client, DirectoryNamespace) - assert str(tmp_path) in ns_client.namespace_id() + # namespace_id() is a Rust debug string, which escapes the backslashes + # in Windows paths. + assert str(tmp_path).replace("\\", "\\\\") in ns_client.namespace_id() -@pytest.mark.skipif(sys.platform == "win32", reason="Namespace client issues") def test_namespace_client_with_storage_options(tmp_path): """Test namespace_client() preserves storage options.""" from lance.namespace import DirectoryNamespace @@ -1506,7 +1505,6 @@ def test_namespace_client_with_storage_options(tmp_path): assert isinstance(ns_client, DirectoryNamespace) -@pytest.mark.skipif(sys.platform == "win32", reason="Namespace client issues") def test_namespace_client_operations(tmp_path): """Test that namespace_client() returns a functional namespace client.""" db = lancedb.connect(tmp_path) @@ -1526,7 +1524,6 @@ def test_namespace_client_operations(tmp_path): assert "test_table" in table_names -@pytest.mark.skipif(sys.platform == "win32", reason="Namespace client issues") def test_namespace_client_namespace_connection(tmp_path): """Test namespace_client() returns the backing client for namespace connections.""" from lance.namespace import DirectoryNamespace @@ -1535,4 +1532,6 @@ def test_namespace_client_namespace_connection(tmp_path): ns_client = db.namespace_client() assert isinstance(ns_client, DirectoryNamespace) - assert str(tmp_path) in ns_client.namespace_id() + # namespace_id() is a Rust debug string, which escapes the backslashes + # in Windows paths. + assert str(tmp_path).replace("\\", "\\\\") in ns_client.namespace_id() diff --git a/python/python/tests/test_namespace_integration.py b/python/python/tests/test_namespace_integration.py index e05885224..9b70d1eeb 100644 --- a/python/python/tests/test_namespace_integration.py +++ b/python/python/tests/test_namespace_integration.py @@ -20,7 +20,6 @@ Tests verify: import copy import os import shutil -import sys import tempfile import time import uuid @@ -391,10 +390,6 @@ def test_namespace_open_table_with_provider(s3_bucket: str, use_custom: bool): assert get_describe_call_count(inner_ns_client) == describe_count_after_open -@pytest.mark.skipif( - sys.platform == "win32", - reason="TODO: fix schema-only namespace metrics test on Windows", -) @pytest.mark.parametrize("use_custom", [False, True], ids=["DirectoryNS", "CustomNS"]) def test_namespace_create_schema_only_with_provider(use_custom: bool): """ diff --git a/python/python/tests/test_table.py b/python/python/tests/test_table.py index aae471070..6af5045dd 100644 --- a/python/python/tests/test_table.py +++ b/python/python/tests/test_table.py @@ -6012,13 +6012,6 @@ def test_hybrid_search_metric_type(tmp_db: DBConnection): @pytest.mark.parametrize( "consistency_interval", [None, timedelta(seconds=0), timedelta(seconds=0.1)] ) -@pytest.mark.skipif( - sys.platform == "win32", - reason=( - "TODO: directory namespace is not supported on Windows yet; " - "re-enable after that is fixed." - ), -) def test_consistency(tmp_path, consistency_interval): db = lancedb.connect(tmp_path) table = db.create_table("my_table", data=[{"id": 0}])