Skip to content

Commit

Permalink
Don't assume test.pyodide_test always exists. (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau authored Aug 30, 2024
1 parent d7da97c commit 61e4c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_pyodide/doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def run_doctest_in_pyodide_outer(
out: Callable[[str], object] | None = None,
clear_globs: bool = True,
):
if not test.pyodide_test: # type:ignore[attr-defined]
if not getattr(test, "pyodide_test", None):
# Run host test as normal
return host_DocTestRunner_run(self, test, compileflags, out, clear_globs)

Expand Down

0 comments on commit 61e4c3c

Please sign in to comment.