Skip to content

Commit 1d4e10b

Browse files
committed
test: cover native exception after Endstone binding import
1 parent ba39db4 commit 1d4e10b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/test_amulet_reader.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
from concurrent.futures import ThreadPoolExecutor
4+
from importlib import import_module
45
from pathlib import Path
56

67
import pytest
@@ -43,6 +44,7 @@ def test_iter_visible_state_exhausts_in_repository_worker_thread(tmp_path: Path)
4344

4445

4546
def test_missing_leveldb_raises_python_exception(tmp_path: Path) -> None:
47+
import_module("endstone._python")
4648
from amulet.leveldb import LevelDB, LevelDBException
4749

4850
with pytest.raises(LevelDBException, match="No database exists"):

0 commit comments

Comments
 (0)