File tree Expand file tree Collapse file tree
src/pytest_codspeed/instruments Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ def __init__(self) -> None:
2626 try :
2727 from .dist_instrument_hooks import lib # type: ignore
2828 except ImportError as e :
29+ print (e )
2930 raise RuntimeError ("Failed to load instrument hooks library" ) from e
3031
3132 instance = lib .instrument_hooks_init ()
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ def __init__(self, config: CodSpeedConfig) -> None:
2727 try :
2828 self .instrument_hooks = InstrumentHooks ()
2929 self .instrument_hooks .set_integration ("pytest-codspeed" , __semver_version__ )
30- except RuntimeError :
30+ except RuntimeError as e :
31+ print (e )
3132 self .instrument_hooks = None
3233
3334 self .should_measure = self .instrument_hooks is not None
Original file line number Diff line number Diff line change @@ -42,13 +42,17 @@ class BenchmarkConfig:
4242 @classmethod
4343 def from_codspeed_config (cls , config : CodSpeedConfig ) -> BenchmarkConfig :
4444 return cls (
45- warmup_time_ns = config .warmup_time_ns
46- if config .warmup_time_ns is not None
47- else DEFAULT_WARMUP_TIME_NS ,
45+ warmup_time_ns = (
46+ config .warmup_time_ns
47+ if config .warmup_time_ns is not None
48+ else DEFAULT_WARMUP_TIME_NS
49+ ),
4850 min_round_time_ns = DEFAULT_MIN_ROUND_TIME_NS ,
49- max_time_ns = config .max_time_ns
50- if config .max_time_ns is not None
51- else DEFAULT_MAX_TIME_NS ,
51+ max_time_ns = (
52+ config .max_time_ns
53+ if config .max_time_ns is not None
54+ else DEFAULT_MAX_TIME_NS
55+ ),
5256 max_rounds = config .max_rounds ,
5357 )
5458
@@ -214,7 +218,8 @@ def __init__(self, config: CodSpeedConfig) -> None:
214218 try :
215219 self .instrument_hooks = InstrumentHooks ()
216220 self .instrument_hooks .set_integration ("pytest-codspeed" , __semver_version__ )
217- except RuntimeError :
221+ except RuntimeError as e :
222+ print (e )
218223 self .instrument_hooks = None
219224
220225 self .config = config
You can’t perform that action at this time.
0 commit comments