Skip to content

Commit 13c7941

Browse files
committed
fix tests
1 parent b8aed8d commit 13c7941

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/io/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def test_import_file_io() -> None:
280280

281281
def test_import_file_io_does_not_exist(caplog: Any) -> None:
282282
assert _import_file_io("pyiceberg.does.not.exist.FileIO", {}) is None
283-
assert "ModuleNotFoundError: No module named 'pyiceberg.does'" in caplog.text
283+
assert "Could not initialize FileIO: pyiceberg.does.not.exist.FileIO" in caplog.text
284284

285285

286286
def test_load_file() -> None:

tests/table/test_locations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_custom_location_provider_not_found(caplog: Any) -> None:
7070
load_location_provider(
7171
table_location="table_location", table_properties={"write.py-location-provider.impl": "module.not_found"}
7272
)
73-
assert "ModuleNotFoundError: No module named 'module'" in caplog.text
73+
assert "Could not initialize LocationProvider: module.not_found" in caplog.text
7474

7575

7676
def test_object_storage_no_partition() -> None:

0 commit comments

Comments
 (0)