mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-19 21:23:26 +08:00
Ensure import pybind11_tests traceback is shown. (#4455)
This commit is contained in:
parent
d821788bb6
commit
e53d58af6c
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user