Skip to content

Commit 61e4c3c

Browse files
authored
Don't assume test.pyodide_test always exists. (#142)
1 parent d7da97c commit 61e4c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_pyodide/doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def run_doctest_in_pyodide_outer(
118118
out: Callable[[str], object] | None = None,
119119
clear_globs: bool = True,
120120
):
121-
if not test.pyodide_test: # type:ignore[attr-defined]
121+
if not getattr(test, "pyodide_test", None):
122122
# Run host test as normal
123123
return host_DocTestRunner_run(self, test, compileflags, out, clear_globs)
124124

0 commit comments

Comments
 (0)