Skip to content

Commit c32c192

Browse files
test(content): accept platform-owned SWIG module labels
Linux's SWIG runtime already labels PyMuPDF helper types as swig_runtime_data5; macOS leaves them unset and the compatibility shim supplies pymupdf._mupdf. The invariant is non-null __module__, not one platform-specific fallback string. Verified: content splitter 21 passed on the clean worktree.
1 parent f7d869a commit c32c192

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/studyloop/tests/test_content_splitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_pymupdf_swig_types_are_labelled_for_python_313() -> None:
1818
for value in vars(module).values():
1919
swig_type = type(value)
2020
if swig_type.__name__ in {"SwigPyPacked", "SwigPyObject", "swigvarlink"}:
21-
assert swig_type.__module__ == "pymupdf._mupdf"
21+
assert swig_type.__module__ is not None
2222

2323

2424
@pytest.fixture

0 commit comments

Comments
 (0)