Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
holoviz
GitHub Repository: holoviz/panel
Path: blob/main/examples/conftest.py
2004 views
1
collect_ignore_glob = [
2
"apps/",
3
"developer_guide/",
4
"homepage.ipynb",
5
"*VTK*.ipynb",
6
"*Vega.ipynb",
7
"*DeckGL*.ipynb",
8
"*Terminal.ipynb",
9
]
10
11
12
def pytest_runtest_makereport(item, call):
13
"""
14
Skip tests that fail because "the kernel died before replying to kernel_info"
15
this is a common error when running the example tests in CI.
16
17
Inspired from: https://stackoverflow.com/questions/32451811
18
19
"""
20
from _pytest.runner import pytest_runtest_makereport
21
22
tr = pytest_runtest_makereport(item, call)
23
24
if call.excinfo is not None:
25
msgs = [
26
"Kernel died before replying to kernel_info",
27
"Kernel didn't respond in 60 seconds",
28
]
29
for msg in msgs:
30
if call.excinfo.type == RuntimeError and call.excinfo.value.args[0] in msg:
31
tr.outcome = "skipped"
32
tr.wasxfail = f"reason: {msg}"
33
34
return tr
35
36