Commit 4f6183cf by Ralf W. Grosse-Kunstleve Committed by Henry Schreiner

Ensure `import pybind11_tests` traceback is shown. (#4455)

parent f14bb03d
......@@ -11,11 +11,17 @@ import multiprocessing
import os
import re
import textwrap
import traceback
import pytest
# Early diagnostic for failed imports
import pybind11_tests
try:
import pybind11_tests
except Exception:
# pytest does not show the traceback without this.
traceback.print_exc()
raise
@pytest.fixture(scope="session", autouse=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment